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 670 forks source link

Speech to Text 500 Forwarding Error #44

Closed germanattanasio closed 9 years ago

germanattanasio commented 9 years ago

When attempting to use the speech to text example included in the watson-developer-cloud npm package it returns an HTTP 500 error.

{ code: 500, error: { status: { message: 'Forwarding error', status_code: 500}}}

The only changes I've made, barring including my authentication information, is to include a new audio file that is audio/flac format 4.2MB and 46 seconds long, and to set the qs option as continuous and the transfer_encoding as chunked.

Other details that may or may not be relevant include that the audio was originally wav format and converted to flac using a command line tool, and that when I run the sample request with the example audio it returns successfully.

germanattanasio commented 9 years ago

More information from a user trying to send a 12mb audio file to recognize()

https://developer.ibm.com/answers/questions/203533/speech-to-text-unable-to-communicate-with-watson-d.html

germanattanasio commented 9 years ago

I think this could be related to a timeout issue with requests. See https://github.com/request/request#requestoptions-callback

germanattanasio commented 9 years ago

I did some research and the problem was related to the load balancer and a glitch in the network. The request never got to the service and that's why we got a 500: forwarding error. This is not related to the wrapper