watson-developer-cloud / node-sdk

:comet: Node.js library to access IBM Watson services.
https://www.npmjs.com/package/ibm-watson
Apache License 2.0
1.48k stars 669 forks source link

Unsupported API version when using 'Tone analyzer' #209

Closed iamgroot42 closed 8 years ago

iamgroot42 commented 8 years ago
var tone_analyzer = watson.tone_analyzer({
  url: 'https://gateway.watsonplatform.net/tone-analyzer-beta/api/',
  isStreaming: false,
  username: 'XXX',
  password: 'YYY',
  // version_date: '2016-11-02',
  version: 'v2-experimental'
});
nfriedly commented 8 years ago

Hi Groot,

It looks like there's a mismatch between your beta URL and experimental API version. Try either commenting out the url field, or switching the version to 'v3-beta' and let me know if either of those work for you.

iamgroot42 commented 8 years ago

The error's gone now.

I hadn't updated the package for watson and was using this.However, this has been outdated and using v3 requires the new package. Upgrading did it (using v3-beta)

Thanks

nfriedly commented 8 years ago

Awesome!

Thanks, -Nathan

Sent from mobile phone. On Feb 12, 2016 8:27 AM, "Anshuman Suri" notifications@github.com wrote:

The error's gone now.

I hadn't updated the package for watson and was using this.However, this has been outdated and using v3 requires the new package. Upgrading did it (using v3-beta)

Thanks

— Reply to this email directly or view it on GitHub https://github.com/watson-developer-cloud/node-sdk/issues/209#issuecomment-183327507 .