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
"Prisma server not ready" version 3.1.1+ #161
Comments
I guess, we should just do more accurate error output. I have, I will look into this and let you know. |
@blopker Can you provide a minimal example where this error occurs? It is best to create a repository. |
I really just followed the guide at https://prisma.pub/docs/getting-started.html. The code is the same. I looked at it a bit and added a delay in binary_engine, and it started working:
It looks like the retry logic isn't looping correctly, and the server isn't starting up fast enough on my system. I'd suggest changing the retry logic to:
Instead of throwing the exception in the |
@blopker Fixed in v3.1.3 version, Thanks again. |
Nice! Thanks for the quick turnaround. Hopefully the Prisma people get that C API you wanted done and then there will be none of this server business to deal with. |
I'm a Rust Apprentice, and I'm overwhelmed by upstream breaking changes. Issue flagged at prisma/prisma-engines#3757. But Prisma officials seem to be very busy, all I can do is wait. Maybe someday I'll create a PR for them when I feel competent enough to edit the Prisma engine's Rust code. This is great for me, since bringing Prisma into Flutter has always been a goal of mine. |
Hm, the fix didn't quite work. It looks like the http library is throwing an exception when the server isn't up yet. I think the code needs to retry on any exception. |
I found it too, I'll re-fix it |
@blopker Because I paid one-sided attention to the abnormal retry of the function body before, and ignored the IO related, now I fixed it in v3.1.4 👉https://github.com/odroe/prisma-dart/releases/tag/orm-v3.1.4 |
Works now! Thanks @medz. Another thing I noticed is that if
It's cool you're working on this. There's not really a good solution to database management for Dart yet. This is going to be a huge win for this ecosystem. I was under the impression Prisma re-wrote the server in Rust specifically to support more languages, but I guess they never got that far. |
Hello! I wanted to surface an issue I ran in to while following the Getting Started guide. After following the guide, then running the final dart program to add a user to the database, I'm getting this error:
This error does not happen on version 3.1.0, but starts happening on version 3.1.1 and still happens on 3.1.2. Anything can be done about that?
The text was updated successfully, but these errors were encountered: