Skip to main content

All Questions

0 votes
0 answers
24 views

Error querying device-1 while trying to send streaming audio data to backend served on EC2

In local environment, my application was running smoothly without any issues, but when I deployed it on EC2, I was getting an error querying device -1 while I was trying to send streaming audio data ...
Parimal Kolhe's user avatar
0 votes
0 answers
80 views

Stream Huggingface Text Generation Response Via Websocket

So I am new to working with websockets and seem to be at a snag with my current code base. Essentially, I have a React frontend where the user asks a question and supplies some parameters, this ...
Brandon's user avatar
  • 49
0 votes
0 answers
179 views

How to implement WebSocket communication for chat responses in a FastAPI-React.js chatbot?

I am a novice developer who can handle python to some extent, but has little knowledge about fastapi and servers. I'm building a chatbot using autogen with FastAPI-React.js I wish the agent's chat ...
Junsung Kim's user avatar
0 votes
0 answers
35 views

Websocket client not able to listen to WebSocket's sendText method from FastAPI

I am trying to listen for messages from backend using FastAPI and react.js on frontend. I am able to send message to backend from client and also able to receive to broadcast messages from backend to ...
BraveEvidence's user avatar
2 votes
0 answers
95 views

WebSocket connection to ... failed in React, but works with Postman WebSocket client

I want to connect a FAST API websocket to a React client. When I try to establish the connection troug Postman it is working, but when I try with react, it shows WebSocket connection to ... failed My ...
Mario Markov's user avatar
1 vote
1 answer
258 views

How can i send a video mediastream from React js to Python using Websocket?

My objective is to send a user's video stream as array buffer to python using websocket. I am confused about how to make getUserMedia stream an array and send it to python using fastapi websocket. I ...
Indradeep's user avatar
0 votes
0 answers
299 views

FastAPI Websocket documentation example failing to run (403 error)

I am trying to run the example in the documentation. I have modified it by extracting the body and putting it in a React Socket component. The fastapi server part is unchanged. The app seems to load ...
Sarah's user avatar
  • 39
0 votes
1 answer
85 views

socket io react client connection closes inmediately after creating it

I have a FastAPI Python server which supports sockets connections. I try to connect through a React client using socket.io-client. The problem is that the socket is created correctly but closes right ...
Augusto Lallana's user avatar
0 votes
1 answer
460 views

Connect FastAPI and react-admin via websocket [duplicate]

I'm kinda new with react and react-admin. The task is pretty simple, it is to connect FastAPI server with react-admin app via websocket. I think I have to create websocket dataProvider somehow. for ...
Matthew Williams's user avatar
0 votes
1 answer
986 views

WebSocket connection failing between ReactJS frontend and FastAPI backend on Azure Web App [duplicate]

I have a Python backend (built with FastAPI) and a JavaScript frontend (built with ReactJS). I created a websocket route in the backend, and a websocket component in the frontend. When both servers ...
Paulo Mattos's user avatar
0 votes
0 answers
125 views

Websocket in React not rendering component when state is changed

I'm developing a ChatGPT client backend/frontend. Backend is sending via websockets a streaming response writing text asynchronously. But it seems frontend is not rendering components until whole ...
Iker Ocio Zuazo's user avatar
2 votes
0 answers
37 views

Socket.io and fastapi: requests don't send immediately [duplicate]

I have a frontend written in React and a backend written in FastAPI. I want them to talk, either over websockets or socket.io. Right now I'm using socket.io. In either case, the same problem happens: ...
forefinger's user avatar
  • 3,837
6 votes
1 answer
14k views

Socketio implementation with FastApi and React

I have the following techstack FastApi - backend React - frontend and want to implement socketio(not Websockets provided by FastApi). It lacks documentation in both FastApi and Socketio
targhs's user avatar
  • 1,667
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 ...
jong's user avatar
  • 21
0 votes
0 answers
25 views

Google Chrome extension is not working few laptops

we have created a google chrome extension and the package unloaded localy. the extension is working 90% of users and it's not working for 10% of users. the extension is not communicating with backend ...
Alwin George Daniel's user avatar

15 30 50 per page