SupabaseS
Supabase12mo ago
Othman

DB trigger can't find supabase.httpRequest() function

I have this trigger
CREATE trigger "get_conversation_detail" after insert on 
"public"."interview" for each row 
execute function "supabase_functions"."http_request"(
  'https://dujoqwrvmrvcgliupzkd.supabase.co/functions/v1/get-conversation-details',
  'POST',
  '{"Content-Type":"application/json",
  "Authorization":"Bearer "}',
  '{"interview_id":"95fbd144-e05a-4e1b-98b5-f064d6da84c6",
    "conversation_id":"EUSBkgmGyih7er3xTjn0"
  }',
  5000
)


when i run this query

`INSERT INTO public.interview (candiate_id,conversation_id,meeting_id, agent_id)
VALUES ('50616f55-86a4-4b91-8a04-b507f3f6bbab', 'lXQHtdrHqiveGaYo9kLi', 'lXQHtdrHqiveGaYo9kLi', 'lXQHtdrHqiveGaYo9kLi');


it fails as it can't find the httpRequest method
Was this page helpful?