Hi all — I’m running into a 500 error when calling a custom webhook in n8n that queries Supabase for a therapist profile based on the therapist ID.
For context:
- I’m testing locally and have hard-coded a therapist ID in my frontend (built in Bolt).
- However, when my app calls the
/webhook/therapists/profileendpoint, I’m seeing a 500 Internal Server Error. - The frontend logs also show that the therapist ID is still coming through as
'non-user'instead of the expected hard-coded value, which is probably causing the Supabase query in n8n to fail.
What I’ve Checked:
- The frontend is supposed to send a hard-coded therapist ID — but I’m seeing
'non-user'in the logs. - n8n’s webhook likely isn’t getting a valid therapist ID, but the current flow returns a 500 error instead of failing gracefully.
- I want to confirm:
How can I best add error handling in n8n to catch when the input (therapist ID) is invalid or missing, and instead return a 400 response?


