PhilipA
03/16/2021, 10:34 PMvans163
03/16/2021, 10:35 PMCeru ©
03/16/2021, 10:35 PMvans163
03/16/2021, 10:35 PMCeru ©
03/16/2021, 10:35 PMCeru ©
03/16/2021, 10:36 PMvans163
03/16/2021, 10:36 PMvans163
03/16/2021, 10:37 PMttraenkler
03/18/2021, 6:52 AMalbert-zhao
03/18/2021, 6:54 AMttraenkler
03/18/2021, 6:55 AMalbert-zhao
03/18/2021, 6:56 AMttraenkler
03/18/2021, 6:57 AMKat
03/18/2021, 1:28 PMjed
03/19/2021, 2:07 AMfetch
is used, not the worker's global fetch
).
4. Since the redirect was not intended for the DO, it barfs and returns an error.
Thanks to Cloudflare following the standard fetch implementation (seriously, such a good design decision), I realized I could get around this by setting the redirect
property on the init
parameter to manual
(instead of the default follow
), but I wonder if it would be better to change the behavior of DO stub fetch to default to manual
for fully-qualified 3xx Location headers that don't match the request host?jed
03/19/2021, 2:25 AMfetch
. It would avoid issues like this, and obviate the need for the current awkward binding setup dance.ndry
03/19/2021, 11:16 AMerrors: { "code": 10013, "message": "workers.api.error.unknown" }
when I try to delete them.
I had a suspicious issue before that, but I am not sure about the relation. I was working on a script to upload workers-chat-demo and was creating both namespaces in parallel queries. Sometimes it would fail (and that's how I guessed parallel namespace creation might be an issue), but not always. When it did not fail, the chat was deployed, and the worker served the front-end, but for some of that workers the durable object namespace was not bound. Now I try to clean everything up but cannot delete those worker scripts that were deployed without errors but did not work.Walshy | Pages
03/19/2021, 11:31 AMndry
03/19/2021, 12:23 PM500 Internal Server Error
when requesting bindings API endpoint for those scripts I cannot delete.ndry
03/19/2021, 12:34 PMoleksandr
03/20/2021, 5:40 PMkenton
03/20/2021, 6:13 PMkenton
03/20/2021, 6:14 PMfetch()
to your same zone bypassed cloudflare and other workers. We plan to fix that by requiring you to write something like origin.fetch()
to explicitly go to origin, and then global fetch()
will go to the public internet always (possibly looping back into your site's "front door").kenton
03/20/2021, 6:14 PMjed
03/22/2021, 12:41 AMfake-host
) to specify the DO from inside a worker.kenton
03/22/2021, 1:46 AMfetch()
method to address durable objects and the public internet, and the difference is determined only by URL, then SSRF becomes an issue, even if they aren't publicly addressable. To be fair, basically all other cloud platforms have this problem... but I'm hoping Workers can avoid it. 🙂jed
03/22/2021, 1:55 AMkenton
03/22/2021, 2:25 AMjed
03/22/2021, 2:28 AMthis.env[someRandomString].get(id).fetch(request)
is a more obvious smell then. 🙇kenton
03/22/2021, 2:31 AM