Share feedback, ideas and get community help

Updated 5 months ago

INTERNAL_SERVER_ERROR

At a glance

A community member is experiencing an issue with Typebot integration on their webpage, where they receive an "Internal Server Error" when trying to initiate the chat, but the chat works fine when accessed directly. The community member has noticed that the issue only occurs when the "Remember user" feature is enabled with Storage set to "local". They have tried adding and removing the apiHost parameter, but the issue persists.

Another community member has provided a solution, which involves setting a variable at the end of the flow and checking if it is set before starting the flow. If the variable is set, they do a redirect.

Useful resources
Hi everyone! πŸ‘‹

I'm experiencing an issue with Typebot integration on my webpage. Here are the details:

{
"message": "Cannot read properties of undefined (reading 'filter')",
"code": "INTERNAL_SERVER_ERROR",
"data": {
"code": "INTERNAL_SERVER_ERROR",
"httpStatus": 500,
"path": "startChat"
}
}



Error! Couldn't initiate the chat. ()
https://typebot.io/api/v1/typebots/chat/startChat 500 (Internal Server Error)

Important Note:
The chat works perfectly when accessed directly through its URL, but fails when embedded in my webpage.
B
Z
3 comments
Can you provide the link to your webpage?
I've noticed something important: the error only occurs when I enable the "Remember user" feature with Storage set to "local".
When "Remember user" is disabled, the chat integration works perfectly fine.
I've already tried adding and removing apiHost: 'https://typebot.io' , but the issue still persists.
Really appreciate your help on this @Baptiste
I found a solution. At the end of the flow, I set a variable, and before starting the flow I check if it is set.
If it is, I do a redirect.
Attachment
asdasdasdasd.png
Add a reply
Sign up and join the conversation on Discord