Skip to content
Docs
Changelog

Email, push and outbound webhooks leave the deployed Worker again

Outbound fetch used a redirect mode workerd does not implement, so every Resend or Cloudflare REST email, Expo push and webhook delivery failed in production. They now use "manual" and still never follow a redirect.

Markdown

  • Fixed: outbound calls failed only on the deployed Worker. The email transport (Resend and Cloudflare REST), Expo push sends and receipts, and outbound webhook deliveries called fetch with redirect: "error". workerd does not implement that mode and throws a TypeError when the request is built (Cloudflare: Request), so nothing was sent: without the Email binding a sign-up that sends a verification email answered 502, push stayed queued with network, and every webhook delivery recorded Invalid redirect value, must be one of "follow" or "manual". Unit tests run on Node, which has the mode, so they passed. Mail through the Cloudflare Email binding does not use fetch and was not affected; Resend and Cloudflare REST, used without the binding or after it refuses, were. (2bd3cd2)
  • Redirects are still never followed. The three transports now pass redirect: "manual". A 3xx stops an email send without falling back to another provider (acceptance unknown, logged as redirect), and fails a push or webhook attempt as a response that is not retried. A run of the built Worker in local workerd against a local stub showed the TypeError before the change and the requests arriving after it, with no redirect followed. Billing provider calls get the same change in #218. (2bd3cd2)
  • A test keeps the mode out. scripts/workerd-fetch-redirect.test.mjs refuses redirect: "error" in apps/web/src and packages/*/src, also through a constant or a RequestRedirect value. See backend conventions. (c090f25)
Edit on GitHubDocumentation is in English.
Cookie settings
We use essential cookies to make our app work. With your consent, we also use optional cookies to improve your experience.

Read our Cookie Policy and Privacy Policy.