web hook problem

557 views
Skip to first unread message

Mohamed CHEBBI

unread,
Sep 7, 2021, 1:10:20 PM9/7/21
to Dialogflow Essentials Edition users
i'm calling the fullfillment  using an api in front end

NOTICE : i'm getting a good response in dialogflow interface

when i'm calling with  session path coming from

  sessionClient.projectAgentEnvironmentUserSessionPath(PROJECT_ID,
DIALOGFLOW_ENVIRONNEMENT, firebaseProviderId, sessionId)

exp : "projects/qpm-dev/agent/environments/dev/users/253c8083-37dd-4f7f-9b9b-e163e7fc331f/sessions/0c4ad715-c1d2-4aed-804c-5b944b03bdb8"

=> i get an error message: 'Webhook call failed. Error: Failed to parse webhook JSON response: Expect message object but got: "<!DOCTYPE".' 

and when calling using
sessionClient.projectAgentSessionPath(PROJECT_ID, sessionId);
the  webhook works fine and i'm getting the good response 

exp : projects/qpm-dev/agent/sessions/6a246fc5-fab8-4f8c-beae-37bbc545de13

please  help me i need to use the first  one !!!!

Mizar Contasti

unread,
Sep 9, 2021, 10:37:36 PM9/9/21
to Dialogflow Essentials Edition users

Hi Cheb, I have been having that error sometimes, its because you are not passing a correct response format that Dialogflow cant understand (You are passing doctype so, HTML) Dialogflow understand JSON...

I can help you to solve this, show me an example of the code and how are you integrating it with your webhook.

Lee Macc

unread,
Sep 21, 2021, 7:54:39 AM9/21/21
to Dialogflow Essentials Edition users
Any tips on how to fix Webhook call failed. Error: DEADLINE_EXCEEDED ?

Amar B

unread,
Sep 21, 2021, 7:56:48 AM9/21/21
to Lee Macc, Dialogflow Essentials Edition users
Even I faced the same problem when I am debugging the application. Stop debugging and check 

--
© 2021 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Dialogflow Essentials (f.k.a. Enterprise) Edition Discussion Google Group (dialogflow-essent...@googlegroups.com; former email: dialogflow-enterp...@googlegroups.com) to participate in discussions with other members of the Dialogflow community and the Dialogflow Team.
---
You received this message because you are subscribed to the Google Groups "Dialogflow Essentials Edition users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dialogflow-essentials-e...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dialogflow-essentials-edition-users/b29d72f1-0c00-4e14-882f-59e2173bf3ffn%40googlegroups.com.

Shamel Addas

unread,
Sep 27, 2021, 8:39:36 AM9/27/21
to Mohamed CHEBBI, Dialogflow Essentials Edition users
I had a similar error and found out that there was an inconsistency between the way a variable was labelled in webhook vs. the console. For example, a variable was named usercode in the console but in the webhook I was referring to userCode. Perhaps this is the case with your sessionID variable.
Best regards,
Shamel

--
© 2021 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Dialogflow Essentials (f.k.a. Enterprise) Edition Discussion Google Group (dialogflow-essent...@googlegroups.com; former email: dialogflow-enterp...@googlegroups.com) to participate in discussions with other members of the Dialogflow community and the Dialogflow Team.
---
You received this message because you are subscribed to the Google Groups "Dialogflow Essentials Edition users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dialogflow-essentials-e...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages