Webhook URL_UNREACHABLE (5xx)

2,882 views
Skip to first unread message

Boštjan

unread,
Oct 25, 2021, 10:01:17 AM10/25/21
to Dialogflow Essentials Edition users
Hey, on the chatbot I'm taking care of I noticed today that the fulfillment code isn't working. The fulfillment code is pretty basic, mostly just triggering custom followup events (e.g. agent.setFollowupEvent('someCustomName), which then triggers specific intent.

It worked fine, but today I'm very often seeing the following error:
Webhook call failed. Error: UNAVAILABLE, State: URL_UNREACHABLE, Reason: UNREACHABLE_5xx, HTTP status code: 500.

I'm using Inlne editor for Google Cloud so the webhook server is in Google Cloud.

The thing is happening on different occasions:
- while testing inside Dialgoflow itself
- while using the chatbot on production website (integration with DF messenger)
- while testing FB messenger integration (app on FB page)

To me it looks there are some issues with Google servers?

Can someone check/confirm this?


Boštjan

unread,
Oct 25, 2021, 10:13:00 AM10/25/21
to Dialogflow Essentials Edition users
Let me add some other info (I think/hope it has nothing to do with the issue but anyway):
  1. Today I created 2 additional environements because of planned bot upgrades.  "Production" for DF messenger integration (on the website) and "Development" for FB messenger integration.
  2. I connected each environment to DF and FB messenger accordingly. At the beginning it looked like it's not working properly, so I also Enabled beta features and APIs in the project settings (read somewhere that this could be a problem). Both messengers are getting different versions, which is fine. Although it is confusing to me that the integrations are not listed on the environment lists.


2021-10-25 16_11_46-chrome-Dialogflow_-_Google_Chrome-hKOHBhVw1V - 573x295.png



2021-10-25 16_10_05-chrome-Dialogflow_-_Google_Chrome-J4GiV9HYAS - 1166x364.png

Boštjan

unread,
Oct 25, 2021, 10:37:15 AM10/25/21
to Dialogflow Essentials Edition users
After digging further I found out what's the issue, but I don't like the solution.

The issue is indeed the option Enable beta features and APIs. This option actually enables me to use different environments for different integrations, which is great.

But the problem with enabling this option is that my current fulfillment code doesn't work.

On the other hand, if I don't enable this option, the changes I do with the bot inside the Dialogflow are visible instantly in the bot on my website. So I don't see a way to be able to have a stable version on the production, develop additional stuff in the meantime and then push the changes to the production enviroment without this option enabled.


Someone can correct me if I'm wrong, but the only soution I see is:
  1. to have the Enable beta features and APIs  option enabled
  2. and to edit/rewrite my fiulfillment code.
I'd be very happy if someone can point me into right direction with the second point.

I'll just add the part of  my simple code which works and triggers the followup event below:

------------------------------------------
  // Dummies
  function D_99_01_01(agent) {
    agent.setFollowupEvent('custom_990101');
  }
  
  let intentMap = new Map();
  
  // Dummies
  intentMap.set('02.01 > some intent to trigger the event (D99.01.01)', D_99_01_01);
  
  agent.handleRequest(intentMap);
---------------------------------------------

My question: how should this be rewritten to work with Enable beta features and APIs option enabled?

Jun Lu

unread,
Oct 25, 2021, 4:10:27 PM10/25/21
to Dialogflow Essentials Edition users
Hi Boštjan,
Thanks for your reporting, however please notice that Google Groups is meant for general product discussions only and not for reporting issues. 
It is recommended to go to StackOverflow for technical questions or Issue Tracker for product bugs (unexpected behaviors) and feature requests. 
To get a better support you should post to the relevant forum, thus please read the Community Support article for better understanding.

Reply all
Reply to author
Forward
0 new messages