Coder Social home page Coder Social logo

Comments (5)

thalkz avatar thalkz commented on June 17, 2024 2

Actually the issue is that you called .execute() directly on from("servers"). There is no query to execute. Try replacing

final response = await Supabase.client.from("public").execute();

with

final response = await Supabase.client.from("public").select().execute();

Still this is a bit confusing. It should either not be possible to call execute() directly, or it should return a more explicit error.

from supabase-dart.

phamhieu avatar phamhieu commented on June 17, 2024 2

I implemented a fix here

from supabase-dart.

thalkz avatar thalkz commented on June 17, 2024

I cloned your project and I'm getting the same error message. It looks like an exception is thrown in the postgrest package on this line.

And indeed, method on this line is a String? that is never initialised, which throws when calling method!. This could be solved by marking method as required in PostgrestBuilder's constructor or by putting a default value (like "get" for example), not sure what's best.

from supabase-dart.

carlomigueldy avatar carlomigueldy commented on June 17, 2024

Thank you @thalkz @phamhieu! Will take a look now.

from supabase-dart.

carlomigueldy avatar carlomigueldy commented on June 17, 2024

Will close the issue now.

If this supabase/postgrest-dart@5f6e140 gets merged then would also be great

from supabase-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.