Bolt.New X Supabase API error 400: Database Action Fail
I recieved this error message on Bolt.New: Supabase API error, 400, Failed to run sql query: ERROR: 42883: function auth.config_set(unknown, unknown) does not exist
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
QUERY: SELECT auth.config_set('mailer.templates.confirm_signup.subject', NULL)
CONTEXT: PL/pgSQL function inline_code_block line 4 at PERFORM
5 Replies
Did you create a function in the auth schema called config_set()? There is no built in function by that name.
How do you create a function in the auth schema
You have to use the SQL editor. Is there a particular reason you want to do that? What is the function supposed to do?
Or maybe Bolt can do it, I've not used it.
Thank you for your help! I was trying to setup email authenticaiton
And the error showed up
I think their AI is hallucinating...
It appears to be wanting to setup an email template for auth. Neither of those appear to be valid things.
That may be possible, but I don't think that is the way it can be done.

