Im very new to buidling apps. And I have an idea im working on with thunkable. Im trying to create the sign up page and Im having big issues with the logic. i already have a database built with Supabase. But for whatever reason nothing is working. And I keep getting error message. This is with chatgpt says I should build this out.
When SignUpButton Clicked →
set SupaBaseAuth’s URL to “https://your-project-id.supabase.co” →
set SupaBaseAuth’s Headers to
create object with fields:
“apikey”: “your-supabase-api-key”,
“Content-Type”: “application/json”
set SupaBaseAuth’s Body to
create object with fields:
“email”: “get text from EmailInput”,
“password”: “get text from PasswordInput”
call SupaBaseAuth’s Post with path “/auth/v1/signup” →
outputs response, status, error →
when Post is done →
if response is successful →
navigate to ProfileSetup
else →
show alert “Error: [error]”
But this isnt working at all. I keep getting the same error message. Keep in mind, I have no prior experience with this. Im entering the API KEY from Supabase within the create object fields. i dont know if there is something on Supabase end that is causing this. Please help
When something isn’t working in Thunkable, it’s best to provide a screenshot (or a link to your project). In this case, we also need to know what the error is – if any – and what the response is. Those green blocks can be assigned to labels or text inputs (the advantage with text inputs is that you can copy the text and then paste it here) so you can see the values when previewing your project.
That has nothing to do with the API call or response. That means that you’ve connected or configured blocks that are invalid in Thunkable. It appears that you created objects with the property:value pair as the property. The property names should be email and password. No quotes, no other text. Those empty puzzle pieces need a value. So you would typically place a text block, text input, or a variable block in each one.
call SupBaseAuth’s Post with path “/auth/v1/signup” → outputs response, status, error → when Post is done → if response is successful → navigate to ProfileSetup else → show alert “Error: [error]”
—
### Key Fixes Needed
1. Base URL:
** * Use only https://ndoajmtipuvxthugygi.supabase.co (remove /auth/v1...).**
** * The endpoint path (/auth/v1/signup) goes in the Post block’s path field.**
I Have been trying to tell it that there isnt a path field. But for whatever reason, that’s were it wants me to place it.
Since Thunkable’s POST call doesn’t have a separate field for the endpoint path, you’ll need to combine the base URL and the endpoint path into a single URL. For example, instead of splitting them up, set the URL field in your POST call to: