All Questions
15
questions
0
votes
0
answers
32
views
Websocket in NodeJS and ReactJs not connecting
I deployed a React.js PWA application (frontend) and a NodeJS backend in a server. Both are working well with Nginx and PM2. I created a WebSocket in my backend server to connect with my Frontend, but ...
1
vote
0
answers
54
views
WebSocket connection error in React and Docker: Could not connect to WebSocket to ws://backend:7000/api/getData
When running my React app in Docker using Nginx as a reverse proxy, I get an error when connecting to WebSocket. I get an error message:
WebSocket connection to 'ws://backend:7000/api/getData' failed: ...
0
votes
0
answers
14
views
Problem when connecting my frontend to deployed socket server
I am trying to connect a react frontend to a deployed node js backend which also has a socket.io connection. this is working fine locally.
But when deploying and connecting to it, it is not making the ...
0
votes
1
answer
467
views
ERR_CONNECTION_REFUSED in Socket.IO
I'm currently using Socket.IO and React to create a chat, but I can't connect to my server because the connection is being refused. I tried using different IP in CORS ORIGIN (and using ['*']), tried ...
2
votes
1
answer
1k
views
How to configure NGINX with websocket for React app hosted in Kubernetes
The websocket (using @stomp/stompjs library) connection works ok on local development bench. Running the app on Azure AKS platform using an NGINX proxy for serving the React app (with also NGINX ...
4
votes
1
answer
1k
views
Can't establish wss connection [React + ASP.NET Core, SignalR + nginx]
I have React app that talks to Asp.Net core API. Both of them are deployed on Docker on my VM. Nginx is installed and configured to resolve domain names for app (thesis.uno - for react app, api.thesis....
12
votes
5
answers
34k
views
WebSocketClient.js:16 WebSocket connection to 'ws://localhost:3000/ws' failed: React, Docker, NGINX
Here's the issue... when I start a React app locally as npm start. I don't have a ws failed connection.
If I start NGINX and React servers within Docker containers I constantly get
WebSocketClient.js:...
0
votes
1
answer
246
views
Aws ec2 with lb does not return 101 on websocket
i have a problem with my app.
Basically while everything runs smooth on localhost, when i deploy to aws websocket connections does not work.
The problem is that when I make an wss request on ec2 it ...
2
votes
0
answers
174
views
After upgrading react-scripts, I get WebSocket connection to 'wss://example.com:3000/ws' failed
Here's my tech stack:
Ubuntu
Nginx
Docker
React
mkcert
I use mkcert to create valid local certificates. Then instead of localhost:3000, I use hosts file to create a DNS record for my project. Thus I ...
2
votes
0
answers
591
views
Nginx websocket connected but client cannot get message from api
I deploy fastapi websocket with nginx.
It seems to be connected ( websocket.readyState from client is 1 and client can send message ) but client cannot get message from API.
here is my nginx websocket ...
3
votes
0
answers
582
views
React WebSocket on server, Error during WebSocket handshake
I have made an application that uses a WebSocket. I want to run this application on a PLESK Server, but I get this error message 'WebSocket connection to 'wss://sub.domain.com/' failed: Error during ...
0
votes
1
answer
183
views
Add a proxy to the socket so I can deploy the application later
I implemented sockets in my application but I want to be able to deploy the application and to do that I want to use proxies.
I am using React Js and websocket.
Here is my App.js websocket ...
0
votes
1
answer
2k
views
Unable to establish websocket connection - React js + Node Express + Nginx
Please help,
Getting following error in production
WebSocket connection to 'wss://subdomain.example.com/socket.io/?EIO=3&transport=websocket' failed: Error during WebSocket handshake: ...
0
votes
0
answers
402
views
Can't open websocket from React app through NGINX
I have a dockerized React app frontend that is served through NGINX:
FROM nginx:alpine
COPY default.conf /etc/nginx/conf.d
COPY ./build /usr/share/nginx/html/
.build is my React web app. default....