The error message "webhook failed with status code 401" typically indicates an issue with authorization. This means that the server you're trying to reach via the webhook is expecting some form of authentication that it's not receiving. Here are a few things you can check: 1.
Authentication: Ensure that the server you're trying to reach with the webhook is receiving the correct authentication credentials. This could be an API key, a token, or some other form of authentication. 2.
Webhook Configuration: Check your webhook configuration in Ory. Make sure the URL, headers, and any other necessary parameters are correctly set up. 3.
Server Logs: Check the logs of the server you're trying to reach. They might provide more detailed information about why the request is unauthorized. 4.
Retry Policy: Ory implements a retry policy that attempts to deliver the payload up to three times, with a 30-second timeout between each attempt. If delivery fails on the first attempt, Ory will automatically retry the delivery two more times. If all attempts fail, you will receive the error message. For more information, refer to the following documentation: - [Troubleshoot Ory Actions Webhook issues](
https://www.ory.sh/docs/troubleshooting/troubleshoot-actions) - [Webhook retries](
https://www.ory.sh/docs/guides/integrate-with-ory-cloud-through-webhooks#webhook-retries)