-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No query string was present #71
Comments
This is not a worktop issue. As mentioned to you in private chat, this is a known issue about Cloudflare Workers specifically. See here for workaround. Worktop correctly parses & exposes the query parameters, but only if it can access them from CFW directly. Edit: Including screenshot of tweet since Twitter seems to be having issues loading it (today?) |
Please have a closer look. The referenced issue is related to a collision with two workers. I have only one and I also tried a different prefix without success.
The URL doesn't work. |
No, the issue linked is exactly relevant to what you're describing. A querystring is only passed to a worker endpoint if it has a route that ends in This is not a worktop issue. You will find the same problem with a 5-line plain worker script: addEventListener('fetch', event => {
event.respondWith(
new Response(event.request.url)
);
}); The query string only shows up with the correct route in place. |
I have a route that ends with
|
You need to add a route that has So, for your example, you want to add querystrings to the
Until you do that you will never see query strings on any |
Fail with
No query string was present
in the browser but works withCURL
CURL
Source: https://github.com/StarpTech/FastGraph/blob/main/src/routes/apq.ts
The text was updated successfully, but these errors were encountered: