You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering a 401 Unauthorized error when trying to configure the scheduler (Cron-job) to invoke the /wakeup API endpoint, as per the last instruction in the deployment guide.
Steps to Reproduce
Modified the render.yaml file as per the deployment instructions.
Successfully created a new instance on Render's blueprint using the modified render.yaml.
Received the service URL and appended /callback to construct the webhook URL.
Pasted the webhook URL into the LINE Webhook URL section on LINE Developers.
Attempted to configure the scheduler to invoke the /wakeup API endpoint.
Expected Behavior
The scheduler should successfully invoke the /wakeup API endpoint without authorization issues.
Actual Behavior
Received a 401 Unauthorized error when the scheduler tried to access the /wakeup API endpoint.
Possible Causes/Suggestions
Is there a specific format or additional requirements for the API_ACCESS_TOKEN?
The text was updated successfully, but these errors were encountered:
To resolve the authorization issue, please follow the steps below:
1. Configure the Environment Variable on Render Service:
Add a new environment variable named API_ACCESS_TOKEN to your Render service.
The value of this environment variable can be any string, for example, abc123.
2. Set the Header in Scheduler's Request:
Add a new header named API-Access-Token to your scheduler's request.
Set the value of this header to match the one used in the API_ACCESS_TOKEN environment variable, in this case, abc123.
By implementing these changes, the scheduler should be able to successfully invoke the /wakeup API endpoint without encountering authorization issues.
I apologize for the oversight in providing these instructions initially. If you have any further questions or encounter any issues, please feel free to reach out. Thank you for bringing this to my attention.
Description
I am encountering a 401 Unauthorized error when trying to configure the scheduler (Cron-job) to invoke the /wakeup API endpoint, as per the last instruction in the deployment guide.
Steps to Reproduce
render.yaml
file as per the deployment instructions.render.yaml
./callback
to construct the webhook URL./wakeup
API endpoint.Expected Behavior
The scheduler should successfully invoke the
/wakeup
API endpoint without authorization issues.Actual Behavior
Received a 401 Unauthorized error when the scheduler tried to access the
/wakeup
API endpoint.Possible Causes/Suggestions
The text was updated successfully, but these errors were encountered: