https://discord.gg/botpress logo
Problems upgrading from Webchat v1
# 🤝help
c
Since upgrading from Webchat v1, my bot's responses do not appear in the chat widget. Looking at the logs, I can see the bot is receiving messages, processing them correctly, and sending a response. But the response doesn't appear on the client. If I completely refresh the page, the responses DO then appear, so it seems to be a problem with the way the page receives new messages from the server. This happens on my website, but also with the bot's shareable link, so I don't think it's a problem with the way I'm referencing and initializing Webchat. I've also replicated this issue on a newly created bot that simply responds with the same message when it receives anything. Does anyone know what might cause this?
l
Can you provide some screenshots for context please @careful-animal-56308
d
i'm having problems too, i can't even load my chatbot via the provided links. I get this error: Invalid config URL. Please make sure your config URL is valid or check your internet connection
c
Hi @loud-crowd-60573, I've reproduced the issue with this really simple bot that just responds with "Hi, I'm listening". This works fine in the emulator, but when I message it from the shareable webchat URL, it never responds. See screenshots. However, if I refresh the shareable webchat window, the response appears... it's like the page is failing to update once it's loaded the first time. https://cdn.discordapp.com/attachments/1437489361146085587/1437536880643276880/image.png?ex=69139a0c&is=6912488c&hm=320fb6ff14f7833b80711af7953afb477f4e271fa52abda901e7ebc71971007e& https://cdn.discordapp.com/attachments/1437489361146085587/1437536881314238505/image.png?ex=69139a0c&is=6912488c&hm=2fa61d81308b32207467118e7e5923690a7f643288441a54c89e0306e1b77f15&
Might be session storage data being full? Can you try clearing it? Or try a different browser?
c
I tried clearing browser storage, and tried several different browsers. However I've just realised it works fine on a PC on a different network, so I believe my employer's network is blocking some of the necessary traffic for the newer version of webchat. I will ask them to unblock traffic to and from Botpress domains. Do you have a list of domains/protocols that would need to be unblocked? ChatGPT suggests the following, but it would be good to have a definitive list: > messaging.botpress.cloud ← real-time messaging stream (most important) > webchat.botpress.cloud ← your …/listen endpoint host > cdn.botpress.cloud ← loader script > api.botpress.cloud ← REST APIs > files.bpcontent.cloud ← your prebuilt embed JS Thanks for your help.