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 <2.0.0-alpha.174> ** EXCEPTION error. FAILED: 400 - Could not find the 'device-id' column of 'temperatures' in the schema cache 0: Client.request_ <pkg:toit-supabase>\supabase.toit:290:7 1: PostgRest.insert <pkg:toit-supabase>\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 [email protected] 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
mvdlande02/23/2025 09:58 PM
Solved, "device_id" was misspelled with a dash instead of an underscore...