How can I diagnose a WebSocket bad handshake when using Cloudflare Tunnel?

Question

Grade: Education Subject: Support
How can I diagnose a WebSocket bad handshake when using Cloudflare Tunnel?
Asked by:
74 Viewed 74 Answers

Answer (74)

Best Answer
(359)
To diagnose a WebSocket bad handshake, check your Cloudflare Tunnel logs for specific error messages. Inspect the WebSocket handshake requests and responses using browser developer tools or tools like `wsdump`. Ensure your origin server is correctly configured to handle WebSocket connections and that Cloudflare's SSL settings are appropriate for your setup.