Intermittent Connection Issue with Wit.ai API
Hi Team,
We are intermittently encountering an issue while connecting to the Wit.ai API. The integration was working fine earlier, but recently we’ve started seeing connection errors. We're using the node-wit npm package to fetch responses from Wit.ai.
Below is the code snippet used for making the request:
Code Snippet:
const { Wit, log } = require('node-wit'); const client = new Wit({ accessToken: accessToken });
client.message(text, {}) .then((data) => { console.log('Yay, got Wit.ai response: ' + JSON.stringify(data)); if (data) { res.send(data); } else { let err = { status: 400, info: '', outputMessage: config.errors.NLP_ERROR }; console.log('Error: Wit.ai returned null data'); res.send(400, err); } }) .catch((error) => { let err = { status: 400, info: error, outputMessage: config.errors.NLP_ERROR }; console.log('Error: Wit.ai response - ' + JSON.stringify(error)); res.send(400, err); });
Error Received:
{ "name": "FetchError", "message": "request to https://api.wit.ai/message?q=benz&context=%7B%7D failed, reason: connect ETIMEDOUT 157.240.221.56:443", "type": "system", "errno": "ETIMEDOUT", "code": "ETIMEDOUT" } We would appreciate it if you could look into this and let us know if there are any known issues on the Wit.ai side or if any action is required from our end.
Thank you.
We have the same problem, continuous timeouts, it has been down for 14 hours already!
HI folks,
Confirming we're also experiencing this issue with the /message endpoint. When we send multiple (or a high volume of/concurrent) requests, a subset of them intermittently fail.