Hey all, I'm stuck on an issue with writing to dat...
# help
t
Hey all, I'm stuck on an issue with writing to database and I don't think my setup can get any simpler but it's still not working. Including pictures of the table I'm trying to write to and the code I'm using to insert. The url that is being generated by the supabase client to POST to looks like it's possibly wrong: https://my-url.supabase.co/rest/v1/simple?columns=%220%22
n
Hello @trebor! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
t
For additional info, I have no problem reading from the same table.
s
It seems like your
id
column is a primary key - it may also be autogenerated. Add another column, and see if you can insert rows without the
id
property
t
This worked! Leaving out the autogenerated fields was something I had already tried on a different table so I'm not exactly sure what I did differently from before, but my issue is resolved. Thanks