Service Binding call resulting in TypeError

Hello, I'm currently working on implementing Service Bindings but I'm running into the following error when calling the fetch() of the service binding and passing on a string: TypeError: Fetch API cannot load: <MY-STRING>

The Env interface:
export interface Env {
    MY_SERVICE_BINDING: any;
}


The binding in the wrangler.toml:
services = [
  { binding = "MY_SERVICE_BINDING", service = "the-worker-im-calling" }
]


The service binding fetch call:
const result = await env.MY_SERVICE_BINDING.fetch("MY-STRING");
Was this page helpful?