We have a integration between dialogflow CX and one app engine with node to connect with our backend.
We're seeing errors in the integration. When we try to call the webhook at https://xxx-xxx-webhook-dev-xx-dot-ea-sp-cx-xx-dev-xx.ey.r.appspot.com/xx-webhook, I receive the following error:
ERROR 2023-10-11T09:08:05.159383Z Error calling webhook 'https://xx-xx-webhook-dev-xx-xx-ea-sp-cx-xx-dev-xx.ey.r.appspot.com/xx-webhook': State: URL_REJECTED, Reason: REJECTED_DEADLINE_EXCEEDED
Our endpoints response in time, around 9-15sec, the weebhook is configure with 30 sec of timeout. But Diagloflow disconnect before of 30 seconds.
¿Somebody knows what hapenned?
The error message you are seeing, "REJECTED_DEADLINE_EXCEEDED," indicates that the Dialogflow CX webhook call is timing out because it's not receiving a response from your App Engine within the configured deadline. In your case, it's configured with a 30-second timeout, but Dialogflow is disconnecting before the timeout.
Check that your Node.js code running on the App Engine is functioning correctly and responding within a reasonable time frame (i.e., within the 30-second timeout you've configured). Review your code and optimize it if necessary to improve response times. Also check your Dialogflow CX configuration to ensure that the webhook URL is correctly set and make sure there are no typos or errors in the URL.
Verify that the timeout configuration in your Dialogflow CX agent is indeed set to 30 seconds. Double-check the agent's settings to make sure the timeout is correctly defined.
Also, consider whether your App Engine could be handling multiple requests simultaneously, potentially causing delays. You might need to adjust your App Engine's resource allocation to handle the load more efficiently. And verify that the response from your webhook adheres to the expected format and schema specified in your Dialogflow CX agent. Incorrect responses can lead to confusion and unexpected behavior
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |