Git Product home page Git Product logo

Comments (5)

lukeed avatar lukeed commented on June 21, 2024

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?)

Screen Shot 2021-08-07 at 1 17 06 PM

from worktop.

StarpTech avatar StarpTech commented on June 21, 2024

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.

See here

The URL doesn't work.

from worktop.

lukeed avatar lukeed commented on June 21, 2024

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.

from worktop.

StarpTech avatar StarpTech commented on June 21, 2024

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 *

I have a route that ends with *.

https://gitlab.fastgraph.de/*

from worktop.

lukeed avatar lukeed commented on June 21, 2024

You need to add a route that has * at the end of the path that you want to accept querystrings on, as the tweet says.

So, for your example, you want to add querystrings to the /query path, so you need to add a route for your worker:

https://gitlab.fastgraph.de/query*

Until you do that you will never see query strings on any /query requests.

from worktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.