- 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
fetchwithredirect: "error". workerd does not implement that mode and throws aTypeErrorwhen 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 withnetwork, and every webhook delivery recordedInvalid 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 usefetchand 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 asredirect), 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.mjsrefusesredirect: "error"inapps/web/srcandpackages/*/src, also through a constant or aRequestRedirectvalue. See backend conventions. (c090f25)
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.
Edit on GitHubDocumentation is in English.