Search code examples
node.jsibm-watsonspeech-to-text

Why am I getting this error in Speech to text code?


I use watson speech to text node.js sdk to develop a "speech to text" module using react. I'm stuck at this final step where I'm getting an error instead of output.

enter image description here

Apparently it says the "GET https://localhost:3002/api/speech-to-text/token net::ERR_CONNECTION_REFUSED TypeError: Failed to fetch"


Solution

  • A number of reason could cause this, some are platform or browser specific, but to start with . 1) Is the website up and listening on that port ? 2) Is you firewall configured to allow traffic ?