-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
No client is generated when prisma generate or prisma db push is run #984
Comments
Looks like it's failing without an error message for some reason, what happens when you run |
I'm out at the moment so I'll try it when I get home. |
It seems that some process has failed and a JSONDecodeError has been generated. |
Would make debugging #984 much easier
@AmaseCocoa could you try upgrading to the latest version and share the debug logs? They should now include more helpful information |
I am attaching it as a txt file because it is too long and I get an error when I try to post it as a comment. |
@AmaseCocoa I suspect this is an encoding issue somewhere, could you try generating the client using a different encoding? e.g.
|
For some reason, I was able to get it to work by setting PYTHONENCODING to utf-8 and fixing the cp932 related error :) I'm creating a pull request to fix the encoding error :)
|
Bug description
No client is generated when prisma generate or prisma db push is run
Log
prisma db push (Cleanup was run before execution and tried to connect to db after execution)
prisma generate
(Logs when prisma generate is run with debugging enabled and with the latest prisma-client-py: prisma.txt)
How to reproduce
Steps to reproduce the behavior:
python -m prisma_cleanup
?prisma generate
orprisma db push
Expected behavior
The client is successfully generated and no RuntimeError is generated.
Prisma information
Environment & setup
The text was updated successfully, but these errors were encountered: