abi / screenshot-to-code

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
https://screenshottocode.com
MIT License
61.57k stars 7.52k forks source link

User Error generating code. Check the Developer Console AND the backend logs for details. Feel free to open a Github issue #376

Closed Belka-kate closed 4 months ago

Belka-kate commented 4 months ago
Снимок экрана 2024-07-16 в 18 47 45 Снимок экрана 2024-07-16 в 18 49 38 Снимок экрана 2024-07-16 в 18 51 59

Hello. I'm trying to upload something but it writes "User Error generating code. Check the Developer Console AND the backend logs for details. Feel free to open a Github issue". I attach screenshots of console (maybe it will help but not sure) and some more, but I don't know how to open backend logs (I'm running from Mac version 12.0.1 if it is important). Please help to do something with that, thank you

abi commented 4 months ago

You need to run your backend with poetry run uvicorn main:app --reload --port 7001 in a separate console tab

Belka-kate commented 4 months ago
Снимок экрана 2024-07-16 в 22 21 40

Thank you. What should I do to fix this problem?

You need to run your backend with poetry run uvicorn main:app --reload --port 7001 in a separate console tab

Web3Worlds commented 4 months ago

Same problem

abi commented 4 months ago

This happens because ffmpeg isn't installed isn't on your system. I think you can remove the videopy dependency if you don't need to use video to code. Or you can install ffmpeg. Let me know if that fixes your issue.

Web3Worlds commented 4 months ago

photo_2024-07-18_16-39-49 photo_2024-07-18_16-39-37 photo_2024-07-18_16-37-05

I have ffmpeg

abi commented 4 months ago

Ah I think, for you @Web3Worlds this is the issue with the tempfile saving. More context but don't have a solution at the moment: https://github.com/abi/screenshot-to-code/issues/311

Belka-kate commented 4 months ago

This happens because ffmpeg isn't installed isn't on your system. I think you can remove the videopy dependency if you don't need to use video to code. Or you can install ffmpeg. Let me know if that fixes your issue.

It fixed the issue but there is news one. Error is the same :(

Снимок экрана 2024-07-19 в 23 39 31 Снимок экрана 2024-07-19 в 23 40 49

![Uploading Снимок экрана 2024-07-19 в 23.40.59.png…]()

abi commented 4 months ago

Is your Anthropic API key correct? It seems like Anthropic is responding with "Request not allowed"

pymdashen commented 4 months ago

same problem

pymdashen commented 4 months ago

image

abi commented 4 months ago

@pymdashen Please open a new issue and share your logs so I can help you.

pymdashen commented 4 months ago

image

abi commented 4 months ago

As I mentioned, please open a new issue to avoid derailing this issue.

Belka-kate commented 4 months ago

Is your Anthropic API key correct? It seems like Anthropic is responding with "Request not allowed"

I fixed it and now it works, thank you <3