Comments (8)
@LucaBarden Hi, Prisma's official binary image does not provide an Android Linux engine. This feature is expected to be provided as a native Flutter plugin in a future C API version. Currently you only need to use Data Proxy engine in Android/iOS/Web.
from prisma-dart.
I tried running the simple example and changed the config to point to remote postgres url. Here's the error I received
PrismaClientInitializationError: message: Failed to start the query engine: The remote computer refused the network connection.
I'm positive that the same config runs on the js environment.
from prisma-dart.
And here's the error when running it on flutter app
E/flutter (11681): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PrismaClientInitializationError:
E/flutter (11681): message: Could not find query engine binary for current platform "android" in query-engine path.
E/flutter (11681):
E/flutter (11681): This probably happens, because you built Prisma Client on a different platform.
E/flutter (11681):
E/flutter (11681): Searched Locations:
E/flutter (11681): - /
E/flutter (11681): - .
E/flutter (11681):
E/flutter (11681): You already added the platform "android" to the "generator" block in the "schema.prisma" file as described in
https://pris.ly/d/client-generator, but something went wrong. That's suboptimal.
E/flutter (11681):
E/flutter (11681): Please create an issue at https://github.com/odroe/prisma-dart/issues/new
E/flutter (11681): errorCode: null
from prisma-dart.
And here's the error when running it on flutter app
E/flutter (11681): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PrismaClientInitializationError: E/flutter (11681): message: Could not find query engine binary for current platform "android" in query-engine path. E/flutter (11681): E/flutter (11681): This probably happens, because you built Prisma Client on a different platform. E/flutter (11681): E/flutter (11681): Searched Locations: E/flutter (11681): - / E/flutter (11681): - . E/flutter (11681): E/flutter (11681): You already added the platform "android" to the "generator" block in the "schema.prisma" file as described in https://pris.ly/d/client-generator, but something went wrong. That's suboptimal. E/flutter (11681): E/flutter (11681): Please create an issue at https://github.com/odroe/prisma-dart/issues/new E/flutter (11681): errorCode: null
I have the same problem trying to run it in a flutter app.
My schema looks like this:
generator client {
provider = "prisma-client-dart"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
from prisma-dart.
Same error here. any solution?
from prisma-dart.
Anything on this?
from prisma-dart.
Anything on this?
@TheCIash To be precise, the default binary Prisma engine of Prisma ORM for Dart does not support Flutter, only the Data Proxy engine supports it, and the next version will include Data Proxy in the official support. It is expected to add native Flutter support in the next major version (waiting for the release of Dart 3.0), at which time the binary engine will be abandoned or only support for pure Dart server or command-line applications will be provided. Currently the Prisma C API is still under development.
from prisma-dart.
from prisma-dart.
Related Issues (20)
- Generation error with array of enum HOT 4
- If the type in .prisma is primitive list type like Int[], then the generated fromJson will cause error: HOT 2
- Document the use of multiple schemas in the same project.
- generator error in orm: ^3.4.8
- Joins, include and select HOT 3
- Dart Wrapper for the Prisma Library HOT 1
- Generated models have optional properties when defined as required in schema HOT 3
- Prisma engine architecture mismatch HOT 10
- Npx Prisma Generate Fails with Orm 4.0.0 HOT 3
- generated_dart_client errors HOT 1
- scehma in Windows production source code contains newline characters causing exceptions HOT 29
- Enhancing the model with information HOT 11
- why don't Json HOT 2
- v4.x generates nullable attributes for non-nullable fields HOT 2
- Wrong generate model, why? HOT 2
- Prisma binary query engine not ready HOT 10
- prisma-query-engine is not closing when the program is finished HOT 1
- Dependency Dashboard
- Error updating field with null
- Generated toJson() method not encoding DateTime and Enum types correctly for JSON responses
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prisma-dart.