Edge function isn't called by CRON
Hi i'am trying to call edge function via CRON but nothing happening, cron request status is succeed, function by itself is working i called it by postman, have you any ideas where the problem can be?
7 Replies
Check your cron logs
it looks like it dont find my function?

select
net.http_post(
url:='https://jqtejmphatejpjrmgsuo.supabase.co/functions/v1/FUNCTION_NAME',
headers:=jsonb_build_object(),
timeout_milliseconds:=5000
);
that is how i call it
Not enough info on what your headers are.
If you have jwt checking on for your function you have to provide the authorization header.
Also Post requires a body I believe.
Check the net status table for errors.
where can i check it?
i mean net status table where it is?
The net._http_repsonse table.
thanks it required auth header, simple thing)