aws-samples / aws-nodejs-sample Goto Github PK
View Code? Open in Web Editor NEWSample project to demonstrate usage of the AWS SDK for Node.js
License: Apache License 2.0
Sample project to demonstrate usage of the AWS SDK for Node.js
License: Apache License 2.0
After invoking npm install you get repository and license field warnings:
$ npm install
aws-nodejs-sample
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
└── [email protected]
npm WARN aws-nodejs-sample No repository field.
npm WARN aws-nodejs-sample No license field.
aws-nodejs-sample$
One solution is in: #4.
I've created owner credentials on ~/.aws/credentials on my mac but it throw an error
[default]
aws_access_key_id = MY_ACCESS_KEY_ID
aws_secret_access_key = MY_SECRET_ACCESS_KEY
{ CredentialsError: Missing credentials in config
at ClientRequest.<anonymous> (/Volumes/Data/Loint/aws-nodejs-sample/node_modules/aws-sdk/lib/http/node.js:83:34)
at Object.onceWrapper (events.js:293:19)
at emitNone (events.js:86:13)
at ClientRequest.emit (events.js:188:7)
at Socket.emitTimeout (_http_client.js:679:10)
at Object.onceWrapper (events.js:293:19)
at emitNone (events.js:86:13)
at Socket.emit (events.js:188:7)
at Socket._onTimeout (net.js:352:8)
at ontimeout (timers.js:386:14)
message: 'Missing credentials in config',
code: 'CredentialsError',
time: 2017-10-13T10:42:38.188Z,
retryable: true,
originalError:
{ message: 'Could not load credentials from any providers',
code: 'CredentialsError',
time: 2017-10-13T10:42:38.188Z,
retryable: true,
originalError:
{ message: 'Missing credentials in config',
code: 'CredentialsError',
time: 2017-10-13T10:42:38.178Z,
retryable: true,
originalError: [Object] } } }
please help
uuid Node module should be used instead of node-uuid as it is been deprecated now.
Can verify the same from below link.
https://www.npmjs.com/package/node-uuid
I followed the instructions for getting started and encountered this error. I clean out and started over twice and got the same error:
> node sample
> { [NoSuchBucket: The specified bucket does not exist]
message: 'The specified bucket does not exist',
code: 'NoSuchBucket',
region: null,
time: Sat Feb 27 2016 14:41:23 GMT-0700 (MST),
requestId: 'AC47248A27D24E87',
extendedRequestId: 'DcHPnnYuP8MYBB+u5sKUSdGzNh1hmA4G0Cv39Lz9CDugdtaNg0TwnU+IOfAoxyy6bhX6l//c3ic=',
statusCode: 404,
retryable: false,
retryDelay: 18.96829721517861 }
This is growing out of date. Version 3 of the AWS SDK is out now and there should be suitable samples for using it, especially since it's own documentation is very incomplete at present.
Hi,
I followed the instructions on your Git page and ran into this issue. I've verified the access-key-id and I've tried recreating the set (access-key id and secret key) a couple of times.
I did an npm install and added my credentials to the ~/.aws/credentials file on MacOS.
Can you provide some kind of trouble-shooting steps ?
I'm trying to install on AWS bitnami node.js AMI. Prehaps I do not have some permission I need?
bitnami@ip-10-30-170-32:~$ git clone [email protected]:awslabs/aws-nodejs-sample.git
Cloning into 'aws-nodejs-sample'...
The authenticity of host 'github.com (192.30.252.130)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.252.130' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
i ran
node sample.js
but didnt get any output.
:-(
I'm having trouble while calling Polly.
Polly.synthesizeSpeech(params, (err, data) => { if (err) { console.log(err.code) } else if (data) { if (data.AudioStream instanceof Buffer) { Fs.writeFile(argv.mp3, data.AudioStream, (err)=> { if (err) { return console.log(err) } console.log("The file was saved!") var output = child_process.execSync('lame --decode ' + argv.mp3 + ' ' + '-b 8000' + ' ' + argv.wav + '.wav'); }) } } })
/opt/aws-nodejs-sample/node_modules/aws-sdk/lib/request.js:31
throw err;
^
TypeError: path must be a string or Buffer
at TypeError (native)
at Object.fs.open (fs.js:631:11)
at Object.fs.writeFile (fs.js:1303:6)
at Response. (/opt/aws-nodejs-sample/script.js:29:4)
at Request. (/opt/aws-nodejs-sample/node_modules/aws-sdk/lib/request.js:364:18)
at Request.callListeners (/opt/aws-nodejs-sample/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
at Request.emit (/opt/aws-nodejs-sample/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
at Request.emit (/opt/aws-nodejs-sample/node_modules/aws-sdk/lib/request.js:683:14)
at Request.transition (/opt/aws-nodejs-sample/node_modules/aws-sdk/lib/request.js:22:10)
at AcceptorStateMachine.runTo (/opt/aws-nodejs-sample/node_modules/aws-sdk/lib/state_machine.js:14:12)
I have no idea how to fix this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.