GithubHelp home page GithubHelp logo

Comments (3)

AMakarov9 avatar AMakarov9 commented on September 26, 2024 1

image

I imported "create_client" from "supabase_py" and not "supabase" πŸ˜…. Works as intended after changing.

from supabase.

IcedTea2K avatar IcedTea2K commented on September 26, 2024

I can't seem to reproduce it. Do you mind providing more context about the code? @AMakarov9

res1 = supabase.table("notes").select("*").eq("column_id", "1").execute()
res2 = supabase.table("notes").update({"title": "abc"}).eq("column_id", "1").execute()
print(res1)
print(res2)
data=[{'column_id': 1, 'title': 'yummy', 'length': 'long'}] count=None
data=[{'column_id': 1, 'title': 'abc', 'length': 'long'}] count=None

from supabase.

AMakarov9 avatar AMakarov9 commented on September 26, 2024

@IcedTea2K

dat3 = supabase.table('test').select('*').eq('id', '1').execute()
dat4 = supabase.table('test').update({'name': "newname"}).eq('id', '1').execute()

print(dat3)
print(dat4)

Still gives:
{'data': [{'id': 1, 'name': 'test'}], 'status_code': 200}
{'data': {'code': 'PGRST102', 'details': None, 'hint': None, 'message': 'Empty or invalid json'}, 'status_code': 400}

This is the table:
image

from supabase.

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.