abi / screenshot-to-code

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
https://screenshottocode.com
MIT License
55.99k stars 6.86k 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 1 month ago

Belka-kate commented 1 month 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 1 month ago

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

Belka-kate commented 1 month 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 1 month ago

Same problem

abi commented 1 month 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 1 month 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 1 month 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 1 month 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 1 month ago

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

pymdashen commented 1 month ago

same problem

pymdashen commented 1 month ago

image

abi commented 1 month ago

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

pymdashen commented 1 month ago

image

abi commented 1 month ago

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

Belka-kate commented 1 month 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