GithubHelp home page GithubHelp logo

aws-nodejs-sample's Issues

Cannot clone aws-nodejs-sample

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

repository and license field warnings in npm install

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.

Update to v3 of the SDK

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.

TypeError: TypeError: path must be a string or Buffer when calling

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.

Error: no such bucket

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 }

Cannot load credentials

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.