watson-developer-cloud / botkit-middleware

A middleware to connect Watson Conversation Service to different chat channels using Botkit
https://www.npmjs.com/package/botkit-middleware-watson
Apache License 2.0
207 stars 257 forks source link

watson middleware is not working behind http proxy - Response not received. Body of error is HTTP ClientRequest object #204

Closed AutomataVM closed 4 years ago

AutomataVM commented 4 years ago

Hello! I am trying to run a botkit application that uses IBM watson assistant as middleware. The problem is, while the whole system works on my local PC, on the server we are deplyoing it into I get the error message when I try sending a message:

Error: Response not received. Body of error is HTTP ClientRequest object at RequestWrapper.formatError (/home/desa/webchatbot/node_modules/ibm-cloud-sdk-core/lib/requestwrapper.js:218:21) at /home/desa/webchatbot/node_modules/ibm-cloud-sdk-core/lib/requestwrapper.js:206:29 at processTicksAndRejections (internal/process/task_queues.js:93:5) { message: 'Response not received. Body of error is HTTP ClientRequest object',

the expected behaviour is: Message is sent to watson IBM assistant, the message is processed and the appropiate response is sent back. Here's how I call the service.

image

germanattanasio commented 4 years ago

@juanpablo64 This is a proxy issue not an issue with this library