Hi all, I'm dealing with dialogflow integration for chatbot in one of my applications. Trained intents , published different versions to different environments. Upto this works excellent as expected. But when we move to production and we got parallel request to dialogflow through node. At this time, getting many timeout responses and users not getting configured messages .
Configured webhook in the dialogflow and getting custom data from node API detectIntent (https://googleapis.dev/nodejs/dialogflow/latest/google.cloud.dialogflow.v2beta1.Sessions.html#detectIntent1).
Using
Node.js : 14.17.6
Dialogflow ES
dialogflow library : @google-cloud/dialogflow": "^4.5.0
getting error as :
webhookStatus: { details: [], code: 4, message: 'Webhook call failed. Error: DEADLINE_EXCEEDED, State: URL_TIMEOUT, Reason: TIMEOUT_WEB.' }
Test Info : If we hit 10 parallel dialogflow detectIntent requests, at least 5 - 7 responses getting timeout_web error as mentioned above 😞 .