langflow icon indicating copy to clipboard operation
langflow copied to clipboard

GPC Shell Script - Websocket Connection Failure

Open cckalen opened this issue 1 year ago • 4 comments

I recently attempted a deployment on Google Cloud Platform (GCP) using the provided Google Cloud Shell script by @genome21. While the instance was successfully created and is accessible via a browser, I'm experiencing issues with the functionality of the tool.

Specifically, the chatbox feature is non-operational to test anything. When attempting to open the chatbox after creating or importing any kind of flow, I'm met with a persistent websocket error in the console.

WebSocket connection to 'ws://34.31.61.111:8080/chat/9d2d13fa-5fe6-4d1d-ae96-bb3922ee7c33' failed

This issue is consistently reproducible by simply creating or importing a flow and then trying to access the chatbox feature.

cckalen avatar May 14 '23 18:05 cckalen

Pull Request #301 addresses this. There was an issue with the Nginx reverse proxy in front of Langflow serving the app. Nginx has been removed from the setup which fixes the websockets issue.

genome21 avatar May 14 '23 22:05 genome21

Now seeing a different error. When I tried to use the chat box, I received a "RateLimitError" in the logs, even though I did not observe any requests being sent to the OpenAI API (verified through their portal).

I have attached the logs in CSV format. Additionally, I'm unsure why the below IP mentioned in the logs is not the external IP that I am using to access the UI.

startup-script: [2023-05-16 11:40:38 +0000] [1726] [INFO] ('176.88.174.134', 64032) - "WebSocket /chat/900f3c39-8476-4321-adfc-45bd7d8991ce" [accepted]

https://docs.google.com/spreadsheets/d/1ASH4m7eLzVsCWV0yYDx040bpFAtt0p2RspWEJSpHmiI/edit?usp=sharing

cckalen avatar May 16 '23 12:05 cckalen

It seems you are using a Vector Store. They require embeddings to function which use the OpenAIEmbeddings endpoint.

ogabrielluiz avatar May 16 '23 13:05 ogabrielluiz

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.

stale[bot] avatar Jun 30 '23 13:06 stale[bot]

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.

stale[bot] avatar Aug 16 '23 19:08 stale[bot]