The Prompt BakeryTemplates and prompts

Fix · Supabase and databases

My Edge Function fails or returns an error

Not checked against the vendor's current screens

What you may see

  • Calling my function gives 401, 500 or a timeout
  • It works when I test it myself

Most likely cause

The call lacks the login header the function requires, a secret the function needs was not set, or the code throws.

Check first (about two minutes)

  1. Open the function's logs in the dashboard at the time of the call.

The fix prompt

What you type here never leaves your browser. The search runs on this page, and nothing is sent to a server or to an AI.

Kept only in this browser, on this device. Keys and passwords are removed before anything is saved.

Prompt language

Paste it into Claude, ChatGPT, Gemini or Cursor, then follow what it says.

After you tried it, did it work?

Steps

  1. Read the function logs I paste (no secrets) and the way the function is called.
  2. Check whether the function requires a signed-in user and whether the call sends the header.
  3. Check the secrets the function reads exist in the function secrets settings (names only).
  4. Add CORS handling if a browser calls it, and catch errors with a clear message.

Do not do this

  • Do not print secrets in function logs.
  • Do not turn off login checks on the function.

Related

Try another entry

How can we help?

What do you need?
Your email, so we can reply (optional)Only enter your own email. We reply there.