Https://fake-host URL in worker logs

Hey everyone!

Am facing two issues whilst looking at my worker logs:

a) For both GET and POST requests, I see two log messages instead of one.
b) For GET Requests, one of the two messages int the URL column displays https://fake-host instead of the normal URL, which is totally weird. Any ideas what might be going wrong? thanks!

This is how the screenshot of logs stream look like:

That is the default host for requests made to Durable Objects. The host is set to fake-host when a relative URL is specified.

You can no longer fetch relative URLs unless you enable the durable_object_fetch_allows_relative_url compatibility flag. So you should only see this for old deployments and deployments without a compatibility date.

https://developers.cloudflare.com/workers/platform/compatibility-dates/

3 Likes

Great answer, Albert, it is very much appreciated!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.