English 中文(简体)
Node.js子孙 S3 ——下载与签名Does NotMatch的错误不符
原标题:Node.js Amazon S3 - Download fails with SignatureDoesNotMatch error

此处是使用下载档案的Im。

var S3_KEY =  xxxxxx ;
var S3_SECRET =  xxxxxx ;
var S3_BUCKET =  xxxxxx ;
var s3Client = require( knox ).createClient({
    "key": S3_KEY,
    "secret": S3_SECRET,
    "bucket": S3_BUCKET
});

// Pull some stuff down
s3Client.get( myFile.zip ).on(  response , function(res){
    console.log( "
" + res.statusCode );
    console.log( "
" + res.headers + "
" );
    res.setEncoding(  utf8  );
    res.on( data , function( chunk ) {
        console.log( chunk );
    });
}).end();

I m 带签署书编号为403个错误。 我做了什么错误?

最佳回答

这似乎在Knox的终点。 显然,这个问题已经解决,但解决办法尚未被纳入主要项目。

See this thread:

我的工作是,仅仅将Knox图书馆移走,并将该存放处带入我的Node_modules 相左:

问题回答

你也许想看AusSum图书馆。 它完全完善并积极维持:

还有一个例子,即从S3下载到你可能认为有用的 no印:

如果需要任何帮助,我就会大声疾呼。 申斥: I m chilts, author of AwsSum.:





相关问题
How to upload and download file from a server using C#

I am developing a webpage in that the user can download their Resume for Edit. So I have a link to download the article. I use the following code for download. DataTable dt = user.getUserDetails(2); ...

Detecting PDF Download

I have recently added functionality for generating pdf reports to a web application. However the reports can be quite large and take some time to show the pdf download dialog. I want to show a spinner ...

Writing file to users giving sporadic error in IE

I have a very interesting issue with only specific IE implementations. I have an ASPX page that is used to write files down to the user, as part of the process the page uses the following code to ...

PHP - List of Excel files to download from Intranet Site?

I have a intranet site running PHP 5 that needs to list a folder containing only Excel files. Ideally the user needs to be able to input some search criteria (ie date) and the files would be filtered ...

Determine total size of SVN directory/trunk

Is there a way to count/calculate the total size of a svn directory if you were to checkout a revision? I have limited internet downloads so I need to know how big something is before I go and ...

Scala and html: download an image (*.jpg, etc) to Hard drive

I ve got a Scala program that downloads and parses html. I got the links to the image files form the html, Now I need to transfer those images to my hard drive. I m wondering what the best Scala ...

Downloading file with wxHTTP?

Im really stumped. Im using the wxHTTP class in wxWidgets to try and download two files. The first request succeeds but the second one fails when wxHTTP->GetInputStream is called. Between downloads, ...

热门标签