Really weird What do you get if you just

Really weird. What do you get if you just console.log(request.url), without any formatting?
4 Replies
Larry
Larry3y ago
In my Pages Function, it looks like this: http://fake.host/experimenter/v1/. When I log it from inside the Durable Object, the very same call looks like this: http://0.0.0.0:49791/experimenter/v1
Hello, I’m Allie!
Oh, that looks like some internal wrangler shenanigans. That makes more sense If you fetch that port directly, do you get the response you would expect from the DO?
Larry
Larry3y ago
Yes
Hello, I’m Allie!
Huh, ok, might be a bug then in local dev...

Did you find this page helpful?