https://discord.cloudflare.com logo
Join Discord
Powered by
# workers-discussions
  • n

    Neiki

    05/18/2023, 7:53 AM
    that is my scheduled handler, but i dont get why the cron triggers runs always twice ๐Ÿคทโ€โ™‚๏ธ

    https://cdn.discordapp.com/attachments/779390076219686943/1108663705291468841/image.pngโ–พ

  • n

    Neiki

    05/18/2023, 7:53 AM

    https://cdn.discordapp.com/attachments/779390076219686943/1108663742893400074/image.pngโ–พ

  • n

    Neiki

    05/18/2023, 9:18 AM
    actually its only duplicated if the cron is set to 10 minutes i set it now to 15 and its normal ๐Ÿคทโ€โ™‚๏ธ i made an thread: https://discord.com/channels/595317990191398933/1108689633295999007
  • t

    TheSpik3

    05/18/2023, 9:53 AM
    Hi, is there any way that I can use HTMLRewriter in Nuxt /api function?
  • l

    Luisdanielbarros

    05/18/2023, 11:21 AM
    Hello, we found this error while using your workers:
    Uncaught TypeError: globalThis.XMLHttpRequest is not a constructor
    We're attempting to use Chargebee in a typescript server.
  • m

    m0c

    05/18/2023, 11:31 AM
    Is anyone building a full api gateway on workers? We are building differerent api products and I find myself reinventing the wheel quite a bit. Already built a custom load balancer. Now looking for a solution to quota management and rate limiting. I would need to do this based on a header (api key / or team-id). Anyone build complex api products on workers and could share some insights?
  • h

    HardAtWork

    05/18/2023, 11:34 AM
    Workers doesnโ€™t support XHMLHTTPRequest for making HTTP requests. You can try to polyfill it with Fetch, or write your own lib to call the Chargebee API
  • l

    Luisdanielbarros

    05/18/2023, 11:35 AM
    Thank you very much for the answer! We were hanging on that piece of information
  • a

    akandea

    05/18/2023, 12:16 PM
    Hey, if I have two workers, with custom domains of a.domain.com and b.domain.com - is there anyway to call b.domain.com from the worker in a.domain.com without service binding them. The reason I ask is because I would prefer not to have to give a.domain.com the knowledge that it is calling another worker under b.domain.com.
  • s

    Skye

    05/18/2023, 12:19 PM
    Just fetch it normally over http?
  • It ll be slower and double your worker
    s

    Skye

    05/18/2023, 12:19 PM
    It'll be slower and double your worker invocations, but if you really want it that way, it'll work
    a
    m
    • 3
    • 6
  • a

    akandea

    05/18/2023, 12:25 PM
    I'm getting 522 when I do that, assuming cloudflare have done it on purpose but is there anyway around this?
  • l

    Lloyd

    05/18/2023, 12:47 PM
    I got infinite loading in quick edit execute. It, execute automatically when launch quick edit, so I can't save my code due to infinite loading. And dev console says some of file are 404 status. I tried clear cache but same. But other cloudflare account works fine. Is there something to do I can?

    https://cdn.discordapp.com/attachments/779390076219686943/1108737660723400864/image.pngโ–พ

  • h

    HolyClony

    05/18/2023, 1:25 PM
    Hi guys! I created a Cloudflare worker to A/B test my website using one of the worker templates. It basically adds a
    data-experiment
    attribute to the body, with one of the experiment names depending on the ip address. Now I have a worker URL: blablab.worker.dev. Now what should I do with this URL? ๐Ÿ˜… This is not the URL I want to use to access my website ๐Ÿค” I'm new to workers/serverless, so sorry if this is a dumb question ๐Ÿ˜‚
  • h

    HolyClony

    05/18/2023, 1:28 PM
    If I just access my website directly, it obviously won't contain the
    data-experiment
    attribute on the body, which is added when passing through the worker... But yet accessing my website directly is what I want ๐Ÿ˜ I don't want users to have to go through the worker.dev url to visit my website, this makes no sense. So I'm trying to understand the obvious step I'm missing.
  • h

    HolyClony

    05/18/2023, 1:36 PM
    ^ Had to setup a route pointing to my website. You need to go in Account -> Workers & Pages -> {worker name} -> Triggers -> Routes
  • j

    James

    05/18/2023, 3:02 PM
    Are you using incognito mode or browsing normally?
  • l

    Lloyd

    05/18/2023, 3:08 PM
    yes. Everything was fine. I found workers is responsing "Bucket not found" error. I deleted my r2 bucket that binded to worker before this issue. The action that delete bucket -> unbind from workers is normal action(automaclly). But dashboard say "there is no binded bucket", actually it wasn't unbinded clearly internally I think. (maybe bug?) It works fine after I re-created bucket with same name. Thanks for your interest in my issue.
  • j

    johannes

    05/18/2023, 3:13 PM
    Hey everyone! Currently trying to debug a worker, but whenever I am trying to stream the logs I am getting a
    10013
    error. That happens both on the CF website, and when I run
    wrangler tail
    - Any ideas? I really need to see these logs
  • s

    Skye

    05/18/2023, 3:15 PM
    Could you remind me what the full error is?
  • j

    johannes

    05/18/2023, 3:16 PM
    Copy code
    โฏ npx wrangler tail -e develop
     โ›…๏ธ wrangler 2.20.0 (update available 3.0.0)
    ------------------------------------------------------
    
    โœ˜ [ERROR] A request to the Cloudflare API (/accounts/xxx/workers/scripts/textmait-api-dev/tails) failed.
    
      workers.api.error.unknown [code: 10013]
      
      If you think this is a bug, please open an issue at:
      https://github.com/cloudflare/workers-sdk/issues/new/choose
  • j

    johannes

    05/18/2023, 3:17 PM
    In the CF dashboards it also says "unknown error" with the same code.
  • s

    Skye

    05/18/2023, 3:18 PM
    I see, could you share the account ID? (the bit you blocked out)
  • s

    Skye

    05/18/2023, 3:19 PM
    It's not sensitive
  • j

    johannes

    05/18/2023, 3:21 PM
    Ah okay, it's
    e3ccbc6498920594681fdac41991612c
  • s

    Skye

    05/18/2023, 3:26 PM
    @Vero ๐Ÿ™ could you find out about this unknown error when tailing? ๐Ÿ™‚ ^
  • v

    Vero ๐Ÿ™

    05/18/2023, 3:31 PM
    raising
  • j

    johannes

    05/18/2023, 3:44 PM
    Thank you for looking into this! Do you have any rough estimate for how long it takes to resolve? Like hours/days/weeks?
  • v

    Vero ๐Ÿ™

    05/18/2023, 3:47 PM
    can you retry tailing please?
  • j

    johannes

    05/18/2023, 3:49 PM
    Same error ๐Ÿ˜ฆ
1...247624772478...2509Latest