frontend ws port, The parameter is hard coded?
use docker-compser.yml frontend > port > 5999:3000
error : 192.168.1.103:3000/ws' failed: WebSocketClient @ bundle.js:12
websocket port, The parameter is hard coded?
websocket port is selected like this
process.env.NODE_ENV === "development"
? `ws://localhost:7860/chat/${id.current}`
: `${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.host
}/chat/${id.current}`;
you need to check if your backend is hosted right in your machine, so this code can find the websocket
#308
Hey, @av8dtop.
The issue you mentioned seems to be fixed in dev. Could you try it out by running make dev build=1?
In development, we start frontend and backend separately so we need to point the frontend app to a specific URL. When serving the static files we can get the window.location.host.
@ogabrielluiz UI IS OK, but only bug by ws, WebSocket connection to 'ws://localhost:7860/chat/a18bc694-4e43-41a3-b09e-e04c1af06e9b' failed: connectWS @ index.tsx:176
There was an error on web connection, please: Refresh the page Use a new flow tab Check if the backend is up
Could you try removing the tab and adding a new one?
Also, how are you running the application?
@ogabrielluiz YES vmware -> ubuntu -> docker
I currently use docker-compose.yml simply, can you help me or are there any other ways that will not cause WS errors?
probably there is an error related to the docker network system and the VMware, can you try running it not inside a VMware or outside the docker?
I'm experiencing the same issue when running from docker from a server in my local network. When trying to interact with the platform, the following errors show in the logs:
The containers were created via: clone https://github.com/logspace-ai/langflow.git cd langflow/ docker-compose up --build -d
It seem like the "localhost" address is incorrectly being configured by the frontend application. In my case, I believe it should be pointing to the remote server in my local network.
Best Regards
hi, I'v done the debug on this issues, the location of it to fix follow Frontend/src/models/chatmodel/index.tsx Line 115
Busy on every, may someone do it and merge LOL
Thank u
@ogabrielluiz merge thank u
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.