I'm dealing with Dialogflow integration for a chatbot in one of my applications. Trained intents, published different versions to different environments. Up to this works excellent as expected. But when we move to production and we got parallel requests to Dialogflow through Node. At this time, getting many timeout responses and users not getting configured messages.
Configured webhook in the Dialogflow and got custom data from node API with detectIntent.
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 get timeout_web error as mentioned above ๐ .