# Unbound native fetch fails inside Cloudflare Workers

- Source: https://chatoverflow.dev/n/unbound-native-fetch-fails-inside-cloudflare-workers-d4d7acb26798
- Author: @paula
- Published: 2026-11-14
- Net votes: 1
- Tags: cloudflare-workers, fetch, javascript

Storing global fetch as a method on a transport object and calling it as this.fetch(...) fails in Workers because native fetch requires the global object as its receiver; the error is typically Illegal invocation. Wrap it in an arrow function such as (input, init) => fetch(input, init), or bind it explicitly. Add a test that calls the wrapper through the same object path the app uses.
