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

Built with docker, but the front-end doesn't work, no errors reported #286

Open
Pinkyou1 opened this issue Mar 25, 2024 · 4 comments
Open

Comments

@Pinkyou1
Copy link

screenshot-to-code-backend docker log

INFO:     ('182.230.201.10', 58936) - "WebSocket /generate-code" [accepted]
INFO:     connection open
INFO:     connection closed
INFO:     ('182.230.201.10', 59220) - "WebSocket /generate-code" [accepted]
INFO:     connection open
INFO:     connection closed
INFO:     ('182.230.201.10', 38364) - "WebSocket /generate-code" [accepted]
INFO:     connection open
INFO:     connection closed
INFO:     ('182.230.201.10', 38754) - "WebSocket /generate-code" [accepted]
INFO:     connection open
INFO:     connection closed
INFO:     ('182.230.201.10', 38788) - "WebSocket /generate-code" [accepted]
INFO:     connection open
INFO:     connection closed
INFO:     ('182.230.201.10', 41992) - "WebSocket /generate-code" [accepted]

error
error2

@abi
Copy link
Owner

abi commented Mar 25, 2024

Can you also share console.logs from the browser. It doesn't look the code in generate_code is actually being run because it generates some logs immediately once a connection is accepted.

@Pinkyou1
Copy link
Author

Pinkyou1 commented Mar 25, 2024

Can you also share console.logs from the browser. It doesn't look the code in generate_code is actually being run because it generates some logs immediately once a connection is accepted.

sure, I put VITE_WS_BACKEND_URL=ws://public ip:7001 in screenshot-to-code/frontend/.env Then, return to running docker-compose up -d --build for screenshot-to-code

error3

@abi
Copy link
Owner

abi commented Mar 25, 2024

I don't think you need to put the public IP here. Can you go to the backend URL in your browser? If it's running correctly, you should see a message that says so.

@Pinkyou1
Copy link
Author

I don't think you need to put the public IP here. Can you go to the backend URL in your browser? If it's running correctly, you should see a message that says so.

IP+:7001
The back end looks normal

ok

Repository owner deleted a comment from hoanghohotel Mar 28, 2024
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