plane icon indicating copy to clipboard operation
plane copied to clipboard

[bug]: Websocket connection to the proxy server failed while set up with docker compose file

Open abidkhan484 opened this issue 2 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current behavior

There is a 404 error while requesting to the /_next/webpack-hmr endpoint with a WebSocket connection. But it perfectly works while requesting an HTTP connection.

websocket_connection_failed

Steps to reproduce

Following with the Local setup steps, the error occurred.

Browser

Google Chrome

Version

Local

Possible Solution

Since the proxy server is running with Nginx, it is recommended to add the relevant proxy header to use Web Socket. The relevant documentation is shared below.

Reference: Nginx WebSocket Proxying documentation

abidkhan484 avatar Dec 19 '23 14:12 abidkhan484