Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
abidkhan484 opened this issue Dec 19, 2023 · 0 comments · Fixed by #3196
Closed
1 task done
Assignees
Labels
🐛bug Something isn't working 🐳docker
Milestone

Comments

@abidkhan484
Copy link
Contributor

abidkhan484 commented Dec 19, 2023

Is there an existing issue for this?

  • 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 added a commit to abidkhan484/plane that referenced this issue Dec 19, 2023
@pablohashescobar pablohashescobar added 🐛bug Something isn't working 🐳docker labels Dec 19, 2023
sriramveeraghanta pushed a commit that referenced this issue Dec 29, 2023
* fix websocket connection issue in docker #3195

* fix websocket connection issue for local env with removing from the prod nginx conf template #319
@sriramveeraghanta sriramveeraghanta added this to the v0.14.2-dev milestone Dec 29, 2023
abidkhan484 added a commit to abidkhan484/plane that referenced this issue Jan 1, 2024
mguptahub added a commit that referenced this issue Jan 10, 2024
* fix websocket connection issue in docker #3195

* fix websocket connection issue for local env with removing from the prod nginx conf template #319

* fix env substitution issue  of proxy_set_header #3196

* review fixes

---------

Co-authored-by: Manish Gupta <[email protected]>
sriramveeraghanta pushed a commit that referenced this issue Jan 22, 2024
* fix websocket connection issue in docker #3195

* fix websocket connection issue for local env with removing from the prod nginx conf template #319
sriramveeraghanta pushed a commit that referenced this issue Jan 22, 2024
* fix websocket connection issue in docker #3195

* fix websocket connection issue for local env with removing from the prod nginx conf template #319

* fix env substitution issue  of proxy_set_header #3196

* review fixes

---------

Co-authored-by: Manish Gupta <[email protected]>
sriramveeraghanta pushed a commit that referenced this issue Jan 22, 2024
* fix websocket connection issue in docker #3195

* fix websocket connection issue for local env with removing from the prod nginx conf template #319

* fix env substitution issue  of proxy_set_header #3196

* review fixes

---------

Co-authored-by: Manish Gupta <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working 🐳docker
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants