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

websocket ERROR after upload an image. #273

Open
charleybin opened this issue Mar 19, 2024 · 5 comments
Open

websocket ERROR after upload an image. #273

charleybin opened this issue Mar 19, 2024 · 5 comments

Comments

@charleybin
Copy link

[error screenshot]
image

[error in frontend term]
image

[screenshot in backend term]
image

[backend startup command]
poetry run uvicorn main:app --reload --port 7001 --host 10.31.1.11

[frontend startup command]
$ yarn dev --host 10.31.1.11
yarn run v1.22.19
$ vite --host 10.31.1.11
23:09:13
23:09:13
VITE v4.5.0 ready in 434 ms

➜ Network: http://10.31.1.11:5173/ 23:09:13
➜ press h to show help 23:09:13

ERROR 23:09:16
[TypeScript] Found 0 errors. Watching for file changes.

[environment]
npm version: 10.2.4
node version: v20.11.1
Python version: 3.10.0
system ubuntu 22.04.3 LTS x86_64
CPU AMD 5900HX

@abi
Copy link
Owner

abi commented Mar 19, 2024

Don't worry about the "ERROR" on the front-end. Not sure why that's showing up during build but it's not a problem.

What logs do you get if any after "Incoming websocket connection...", you should see more logs like before the connection closes typically.

Screenshot 2024-03-19 at 2 05 56 PM

@charleybin
Copy link
Author

This is the screenshot of backend service's log. I'm not sure of whether a socket connection been established before error happens.
微信截图_20240324232109

@abi
Copy link
Owner

abi commented Mar 24, 2024

In this log, you're not able to receive the websocket message. Are you uploading a screenshot or a video? The issue might be that the payload is too large.

Repository owner deleted a comment from hoanghohotel Mar 28, 2024
@charleybin
Copy link
Author

charleybin commented Apr 1, 2024

The error occurs right at the beginning, just as I start the Docker.

image

@abi
Copy link
Owner

abi commented Apr 1, 2024

Oh i see the issue might be with your ffmpeg install. One thing you can try is updating pyproject.toml and removing the moviepy dependency. You shouldn't need that for just screenshots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants