Worker routing not behaving as expected, when the route route is a path below the root of the domain
Hi, I initially tried this in #
workers-rs but didn't get a response, so I'm trying again here. (Note:
The tl;dr is my worker functions correctly if the trigger is at the domain root, i.e.
As an experiment I have two triggers, as follows:
https://api.example.com/*
https://api.example.com/v1/email/parse/*
And my worker has the following routes:
Curl has the following results:
Since I'm getting a
P.S: maybe it has to do with the new custom domains for workers thing.
example.com is used instead of the domain). The tl;dr is my worker functions correctly if the trigger is at the domain root, i.e.
.com/*. For triggers where the route is served from a path below the root, i.e. .com/v1/email/parse/*, I just get Not Found responses. More details below. As an experiment I have two triggers, as follows:
https://api.example.com/*
https://api.example.com/v1/email/parse/*
And my worker has the following routes:
Curl has the following results:
Since I'm getting a
Not Found response (instead of 522), I think that indicates that the requests are actually being routed to the correct place, and that the issue is not with the worker platform itself. Probably the underlying issue is either I'm not understanding something correctly or maybe a problem with the rust routing/pattern stuff? Does anyone have any suggestions? Thank you.P.S: maybe it has to do with the new custom domains for workers thing.


