Chron job calls edge function: 401 status code; authorization header not working? #33194
-
Hey all, I am using the free plan of supabase and following this guide: https://youtu.be/miRQPbIJOuQ?t=349 I setup my hello-world edge function, enabled chron integration and pg_net, and created a chron job to call my edge function without specifying the anon key since the guide tells me it is not required. However, in the edge function logs I receive 401 status code when calling it now. But when I require the JWT verification again and if I specify the anon key manually as a HTTP header it still does not work. To me something looks off here. Does someone has an idea what is going on here? And here is the 401 log message, no auth header provided *at least here in the log.:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You have |
Beta Was this translation helpful? Give feedback.
You have
bearer: jwt
. It isbearer jwt
.