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
generateCode.ts:23 WebSocket connection to 'ws://127.0.0.1:7001/generate-code' failed: #298
Comments
Hi, thanks for the clear walkthrough of your steps. All you need to do is update the frontend .env. See https://github.com/abi/screenshot-to-code?tab=readme-ov-file#%EF%B8%8F-faqs "How can I update the backend host that my front-end connects to?" |
Please close the ticket once you confirm that it works for you. |
According to your guidance, I do like this: I missing something or doing something wrong, hope your help, thank you |
Yes, you have to create it. Alternatively you can update directly in code here:
|
Let me know if that solves your problem! |
Yes, for videos, you need a ANTHROPIC_API_KEY that you'll add to When you upload a PNG like that, what do the backend logs look like? |
@DaihuaWei You're not able to connect to the OpenAI API. Is OpenAI banned in your country? Please see FAQs "How can I configure an OpenAI proxy?" https://github.com/abi/screenshot-to-code?tab=readme-ov-file#%EF%B8%8F-faqs |
1、Already configurate the VITE_WS_BACKEND_URL:
2、curl http://192.168.1.52:7001 is OK, like this:Your backend is running correctly. Please open the front-end URL (default is http://localhost:5173) to use screenshot-to-code.
3、http://192.168.1.52:5173/,
4、when I upload one video or image,the process interface is 127.0.0.1:7001,like this:
5、I don't know what's wrong? hope your help
The text was updated successfully, but these errors were encountered: