_rubenfa
Websocket 426 Error, with LiveView
Hi,
I have developed some things with LiveView. All is working on my machine (how many times I would have said that …), and also on the test server. The problem is that it is not working on the production server. If I open Firefox’s developer tools, I can see an error message:
Firefox can’t establish a connection to the server at wss://mydomain.com/live/websocket?vsn=2.0.0
And after that, an HTTP failed request with code 426 Upgrade Required.
Do you know what am I doing wrong?
Thanks in advance.
Most Liked
idi527
![]()
Is your production box behind a load balancer / reverse proxy of any kind? Maybe it doesn’t allow upgrade requests through, then cowboy would respond with 426 probably, since it expects one. But that’s just speculation.
_rubenfa
Never mind. I find out that there is a Caddy reverse proxy configured. After configuring it with proper WebSockets configuration, all is working fine.
Thanks for your help.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex









