Local development with service bindings gives error when calling service

I am developing a worker locally using a service binding to another worker. When I call the fetch function of the bound worker (running in another terminal with
wrangler dev
) I get an error from worker middleware saying 'Invalid URL String`

The url I am passing is just cloned from the original request... has anyone seen this before?
Was this page helpful?