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

    denchi

    03/24/2023, 8:09 PM
  • d

    denchi

    03/24/2023, 8:09 PM
    🤔
  • d

    denchi

    03/24/2023, 8:10 PM
    it works, but it looks kinda weird
  • w

    Walshy | Pages

    03/24/2023, 8:10 PM
    if you want everything you can just make the expression
    (true)
  • d

    denchi

    03/24/2023, 8:11 PM
    ooh neat
  • d

    denchi

    03/24/2023, 8:11 PM
    🙏
  • d

    denchi

    03/24/2023, 8:11 PM
    didn't see you can edit it manually
  • d

    denchi

    03/24/2023, 8:11 PM
    thanks
  • d

    denchi

    03/24/2023, 8:13 PM
    had to put
    true
    without the parentheses, otherwise it wouldn't accept it
  • d

    denchi

    03/24/2023, 8:13 PM
    but that seems to work
  • c

    calebhailey

    03/24/2023, 8:19 PM
    Thanks for the quick fix!
  • e

    Exerra

    03/24/2023, 8:55 PM
    How easy would it be to put an express server on CF workers with the new node compatibility (if even possible)?
  • h

    HardAtWork

    03/24/2023, 8:57 PM
    Still not possible, nor will it probably ever be possible. Workers aren’t long-lived, so it wouldn’t make sense for them to “listen” for incoming connections
  • f

    felixoi

    03/25/2023, 12:57 PM
    can I somehow get the route configuration for a worker during runtime?
  • h

    HardAtWork

    03/25/2023, 12:58 PM
    Not without fetching the API, or bundling it in yourself.
  • f

    felixoi

    03/25/2023, 12:58 PM
    hm sad, alright
  • f

    felixoi

    03/25/2023, 1:00 PM
    usecase is that I have a cron trigger which does a post request once a night to pubsubhubbub and this needs a callback. Now I want to setup a staging and a prod service so I wont be able to hardcode the domain. I'll just use an env variable then
  • d

    draco2003

    03/25/2023, 7:11 PM
    On the "Workers (per zone)" Graph on the "Total requests" tab can anyone confirm the definition they are using for "Failed Requests"? When I click on the (i) it says Worker exceptions but it seems like the number is Canceled + Exceptions? One step further down the rabbit hole is the definition of cancelled? I'm assuming that is 499s but would be good to know for sure.
  • d

    draco2003

    03/25/2023, 7:14 PM
    Seems like on the workers Errors graph it separates the two numbers and calls it Client Disconnected instead of Canceled.
  • e

    Erisa | Support Engineer

    03/25/2023, 7:33 PM
    This is a very good question that I've seen before, basically youre right and the zone graph includes cancelled as failed when it shouldnt be
  • d

    draco2003

    03/25/2023, 7:35 PM
    Thanks for the confirmation! Could have used your help on the ticket I was trying to figure this out on 🙂
  • e

    Erisa | Support Engineer

    03/25/2023, 7:36 PM
    I remember I replied to one ticket that asked about that, but maybe I didnt see yours 😅
  • g

    Glare

    03/25/2023, 7:50 PM
    Probably a shot in the dark, but does anyone know of any good TS libraries that work on workers that will take text and render it to an image?
  • w

    Walshy | Pages

    03/25/2023, 7:53 PM
    If you're into react: Otherwise there's a Rust lib IIRC, if you search what-I-built you should find it
  • g

    Glare

    03/25/2023, 7:54 PM
    Ahh okay I'll look around. I've been using raw Hono with this worker and didn't know if there was something I could use with just that.
  • g

    Glare

    03/25/2023, 7:54 PM
    But that actually makes sense that I would do it on the frontend.
  • s

    sirhype

    03/26/2023, 3:39 AM
    Anyone have any recommendations for Typescript libraries that'll introspect my MySQL DB and generate types for them? Similar to Prisma, although I'd like to not have to deal with the data proxy etc.
  • s

    sirhype

    03/26/2023, 3:41 AM
    Bonus points if it also generates queries 😄
  • s

    Srd

    03/26/2023, 5:17 PM
    How would I call a service bound to a scheduled worker? I receive `GET /__scheduled?cron=0+7+1+*+*: TypeError: Cannot read properties of undefined (reading 'fetch')`when trying
    env.someBinding.fetch
    .
  • s

    Skye

    03/26/2023, 5:24 PM
    I'm guessing this is with wrangler dev?
1...235823592360...2509Latest