https://discord.gg/botpress logo
WebSocket connection failure
# 🤝help
b
Hello Botpress Support Team, We are experiencing a WebSocket connection failure when using the embedded Botpress webchat on our page, with the browser console showing the error WebSocket connection to 'wss://messaging.botpress.cloud/socket.io/?EIO=4&transport=websocket' failed along with messages like websocket error and chat initialization failure. The embed is implemented according to the official documentation, and we have already verified script load order and HTTPS. Could you confirm if there is any active incident or recent change to the messaging.botpress.cloud WebSocket endpoint, and advise if there are any additional settings recommended for pages with restrictive CSP? Thank you for your support. Best regards, Felipe Foresto https://cdn.discordapp.com/attachments/1405180869207134218/1405180869387358309/Captura_de_Tela_2025-08-13_as_10.26.37.png?ex=689de42a&is=689c92aa&hm=ca84bc494155485b4b032e379702c11fd560cfa11890bfb7a41539e12f19d49e&
w
We are experiencing the same error on one of our production bots; the problem appears to have started at 0824h MST yesterday (tuesday august 12). Drilling down, it appears that auth error
Invalid admin key provided
is part of the problem. We have not changed anything on or in this bot in the interim.
I've created report ID report_01K2HZGBGPA421JZN9CV6ST3E6 for this issue
p
Do the emulator and preview version work as expected?
p
I am experiencing this issue as well. We really need to get this back online asap please.
The emulator seems to work, but the bot is unresponsive in the Webchat v1 now: https://gwarrewardsapi.vercel.app/dashboard
w
@prehistoric-airplane-85682 emulator works as expected; preview gives same auth error:
Copy code
Unexpected error
Invalid admin key provided
err_20250813160950xD9619E4D
p
Our integration appears to be working now. Thank you, Botpress team!
p
Ok so the websocket issue can be solved by updating the embed code in your website.
p
We have a unique use case that only seems to work with Webchat v1. We have a chatbot trivia game that needs to show score information on the frontend and also detect when certain events happen outside of the chatbot, and I was only able to get this to work using v1. It looks like the websocket is back in place. If possible, we would kindly request this version to be kept online as upgrading for us just doesn't appear to be an option at this time.
w
@prehistoric-airplane-85682 the preview is still showing the
Webchat Unauthorized error : Invalid admin key provided
error
4 Views