Error generating code in Local with Anthropic Key
jme418 opened this issue · comments
Hi there! I saw that in hosted version a message saying I need to suscribe to a plan to use an Anthropic key appeared once I dropped an screenshot so I thought I had to be suscribed to an Anthropic plan and not a screenshot-to-code one (my fault).
Now I'm trying to use the credit I have but the only thing I am getting are errors. Now I will show all I did and the error that I am getting:
backend
.env file:
other commands:
frontend
error
That is all I have done I do not see any log indicating a problem or anything like that so I need help please. Thanks.
Thanks for sharing all the screens. Seems like you followed the steps correctly.
- Can you visit 127.0.0.1:7001 in your browser? What does it look like?
- Can you open your browser console after you drop in an image and let me know what's in there?
Thanks to you for answering @abi! Looks like the problem has something to do with what you mentioned...
yeah, looks like your backend server is not actually running at that address. You're definitely running it locally on the same computer as you're using the browser on?
yeah, looks like your backend server is not actually running at that address. You're definitely running it locally on the same computer as you're using the browser on?
Yes, 99.999% sure.
Can you try localhost:7001 in your browser?
Make sure it's http, not https
@abi, if I execute uvicorn command changing port to 8000 for example look at what I get. (I guess I would have to do more changes to make it run properly because I have tried again and frontend console gives me the same errors that I showed in a previous message, in which port 7001 is referenced)
Amazing. That means you can switch the front-end to connect to :8000 and everything should work. 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?"
If it works, please close this issue :)
Amazing. That means you can switch the front-end to connect to :8000 and everything should work. 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?"
If it works, please close this issue :)
It works! Closing issue with a smile in my face :)