Cloudflare Workers - Query params not working

hello cloudflare team! it seems as though there's a bit of a bug with workers, when creating a working that has a query string parameter, if you add a route that is on a custom domain in your zone, it will give back a "Bad Gateway" Error everytime. for instance, my worker works on: login.devacc-xxx.workers.dev?auth=xxx but not api.list.com/login?auth=xxx
4 Replies
kian
kian17mo ago
You can’t add routes that contain a query parameter
ideals.life
ideals.lifeOP17mo ago
nooo 😩 seems like a strange thing to be missing! you can do custom urls with query params
kian
kian17mo ago
Only invoking a Worker if there’s a specific query param isn’t a common request - but you could make a feature request at #workers-feature-suggestions
ideals.life
ideals.lifeOP17mo ago
we like to be funky over here! thanks for your help
Want results from more Discord servers?
Add your server