https://toitlang.org/ logo
subabase demo
# help
m
Hello, I'm trying to get the supabase demo to work, see https://docs.toit.io/tutorials/network/supabase. I have created a test database using the given sql script. But, when I run the code, I get the following error: ****************************************************************************** Decoding by
jag
, device has version ****************************************************************************** EXCEPTION error. FAILED: 400 - Could not find the 'device-id' column of 'temperatures' in the schema cache 0: Client.request_ \supabase.toit:290:7 1: PostgRest.insert \supabase.toit:422:25 2: main database.toit:21:15 ****************************************************************************** In subabase I also see an error: POST 400 /rest/v1/temperatures No query parameters in this request I have also changed the supabase library to toit-supabase@0.3 and modified the demo code accordingly ... uri := "https://$(PROJECT-ID).supabase.co" client := supabase.Client --uri=uri --anon=ANON-KEY ... But the error remains. Has anybody seen this error before? What can i do to resolve this? Regards, Maurits😀 https://cdn.discordapp.com/attachments/1343216544230146089/1343216545102430288/subabase_error.jpg?ex=67bc7764&is=67bb25e4&hm=de8e79f2d1445708100d8924579ea4cd8d43b223093ffa056490d919969701eb&
Solved, "device_id" was misspelled with a dash instead of an underscore...