GithubHelp home page GithubHelp logo

Comments (8)

medz avatar medz commented on May 28, 2024

@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.

wasimTQ avatar wasimTQ commented on May 28, 2024

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.

wasimTQ avatar wasimTQ commented on May 28, 2024

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.

TheCIash avatar TheCIash commented on May 28, 2024

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.

devmerz avatar devmerz commented on May 28, 2024

Same error here. any solution?

from prisma-dart.

TheCIash avatar TheCIash commented on May 28, 2024

Anything on this?

from prisma-dart.

medz avatar medz commented on May 28, 2024

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.

medz avatar medz commented on May 28, 2024

#328

from prisma-dart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.