Supabase returns 201 but no row is created

  • /attachments/1319415619967258675/1319415620231757856/image.png

    ssssadsadasd

    26 days ago

    Super weird situation that got me stuck.
    I want to insert a new supabase row and it returns a 201 (see pic). Also in the logs it shows that they were successful. The table has RLS disabled.
    However, no new row has been created in the table (as confirmed also by SQL queries).

    I have tried every possible configuration in the Toddle API but could not make it work. When I run the SQL in the Supabase dashboard it works though.

    any idea why this happens? thanks
    image.png
    image.png
  • Lucas G

    26 days ago

    What does the body look like
  • /attachments/1319415619967258675/1319417229611368581/image.png

    ssssadsadasd

    26 days ago

    it can be like this empty (see pic) or i could add {"id":4} but the result is the same
    image.png
  • ssssadsadasd

    26 days ago

    when I run it in postman it works. so it must be sth in toddle
  • /attachments/1319415619967258675/1319422577181200506/image.png

    ssssadsadasd

    26 days ago

    I tried creating new table starting from scratch etc but cant make this work
    image.png
    image.png
    image.png
  • /attachments/1319415619967258675/1319424817283207215/image.png

    ssssadsadasd

    26 days ago

    image.png
    image.png
    image.png
  • Lucas G

    26 days ago

    That body is not an empty object, it is a string
    1
  • ssssadsadasd

    26 days ago

    @Lucas G life saver. thanks again
  • Lucas G

    26 days ago

    Any reason you are hard-coding the bearer token? If it's for testing then disregard
  • ssssadsadasd

    26 days ago

    yes, just for testing. just wanted to try any combination
    👍1

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.