high-flower-66335
07/23/2025, 9:52 AMbrief-egg-61061
07/23/2025, 9:52 AMbrief-egg-61061
07/23/2025, 9:52 AM"webhook response could not be unmarshalled properly from JSON: invalid character 'T' looking for beginning of value"
indicates that Ory is expecting a JSON response from your webhook, but it received something else—likely a plain text response or a response starting with a character like 'T' (for example, "This is not JSON..."). This typically happens when: - The webhook endpoint returns a non-JSON response (such as plain text or HTML) when Ory expects JSON. - There is a misconfiguration in the webhook, such as an incorrect URL, authentication failure, or the endpoint is returning an error page instead of the expected JSON payload. - The webhook server in production is behaving differently than in other environments (e.g., different error handling, different content-type headers, or a proxy/load balancer modifying responses). A similar issue was reported where editing a webhook in the Ory Console caused authentication credentials (like a password) to be lost, resulting in the webhook failing and returning an unexpected response. Re-entering the correct credentials resolved the issue. This suggests that webhook authentication or configuration differences between environments could be the culprit in your case as well. The Ory team recommends double-checking your webhook configuration, especially after making edits, and ensuring the endpoint always returns valid JSON when Ory expects it. You may also want to use the Ory CLI to update webhooks as a workaround if the Console is causing issues with credentials[editing action/webhook changes basic auth password](https://github.com/ory/network/issues/416). Action steps: - Ensure your webhook endpoint always returns a valid JSON response with the correct content-type. - Check for differences in webhook configuration between production and other environments, especially authentication. - If you recently edited the webhook in the Ory Console, try re-entering the authentication credentials. If the issue persists, reviewing the actual response body from your webhook in production (using logs or a tool like Postman) can help pinpoint what is being returned and why it fails to parse as JSON.high-flower-66335
07/23/2025, 10:37 AMbrief-egg-61061
07/23/2025, 10:37 AMbrief-egg-61061
07/23/2025, 10:37 AM