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
silentworks
silentworks2mo ago
Check your cron logs
Alexandr Kuzminou
Alexandr KuzminouOP2mo ago
it looks like it dont find my function?
No description
Alexandr Kuzminou
Alexandr KuzminouOP2mo ago
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
garyaustin
garyaustin2mo ago
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.
Alexandr Kuzminou
Alexandr KuzminouOP2mo ago
where can i check it? i mean net status table where it is?
garyaustin
garyaustin2mo ago
The net._http_repsonse table.
Alexandr Kuzminou
Alexandr KuzminouOP2mo ago
thanks it required auth header, simple thing)

Did you find this page helpful?