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

    GuillaumeLakano

    03/01/2023, 4:04 PM
    Just found a workaround, in Workers « Default Usage Model », even if you don't want "unbound" as the default usage models, change it one time on unbound, this activate it on your account, then you can re-turn again on « Default Usage Model » to change it back to « bundled » if it's your preference like us.
  • z

    zoontechsolutions

    03/01/2023, 6:00 PM
    hello everyone
  • e

    Erisa | Support Engineer

    03/01/2023, 6:05 PM
    Most likely you're trying to use Unbound and have a legacy plan that doesn't support unbound. If you're an Enterprise customer you'll have to contact your account team, if not then there should be a prompt somewhere on the dashboard to enable Unbound
  • e

    Erisa | Support Engineer

    03/01/2023, 6:06 PM
    Oh seeing this now, yeah, that sounds like it would work
  • p

    piero

    03/01/2023, 8:28 PM
    Just discovered that workers can be run as cron jobs and wow this is such an amazing feature!
  • c

    Cyb3r-Jok3

    03/01/2023, 10:22 PM
    Has anyone ever come accross the error
    Trace: TypeError: Found invalid object in transferList
    when caching a response? The code I have is
    Copy code
    typescript
    if (response.status !== 404) {
            response.headers.set("cache-control", "max-age=3600")
            c.executionCtx.waitUntil(cache.put(req, response.clone()))
        }
    and if I comment it out then I don't get the error. It only happens on this one endpoint
  • c

    Cyb3r-Jok3

    03/01/2023, 10:35 PM
    Found it: https://github.com/cloudflare/miniflare/issues/527
  • j

    James

    03/01/2023, 10:43 PM
    Oh good, I've been seeing this all over my dev today and assumed it was related to an update of something. Didn't have chance to dig-in yet though
  • d

    dave

    03/01/2023, 11:42 PM
    my gut tells me this is a mitigation for a dangling arraybuffer issue lol
  • d

    dave

    03/01/2023, 11:44 PM
    are you using node_compat mode?
  • c

    Cyb3r-Jok3

    03/02/2023, 1:36 AM
    Nope
  • a

    akshat

    03/02/2023, 9:09 AM
    Hey, can anyone help with ingesting cf-worker's logs in datadog ? I have tried logpush but that is ingesting all trace events, but we just want logs and exceptions. I'm trying out log-forwarding using winston, but facing issue in running code locally. Any help is appreciated .
  • t

    tariq.bashir

    03/02/2023, 10:02 AM
    Hi, Is it possible to create TCP sockets in workers? I want to send something directly to a syslog server.
  • t

    Tom Sherman

    03/02/2023, 10:06 AM
    not yet, that feature is in development
  • s

    Skye

    03/02/2023, 11:10 AM
    Probably best to ask in #1041788765783474216 🙂
  • h

    Huvik

    03/02/2023, 1:00 PM
    👋 Hey folks, is there any news regarding workers services environments? I am referring to https://blog.cloudflare.com/introducing-worker-services/
  • s

    Skye

    03/02/2023, 1:09 PM
    I believe they're currently fleshing out the new Deployments system, with the goal of building environments on top of that
  • s

    Skye

    03/02/2023, 1:09 PM
    Stuff like being able to rollback to a specific deployment, etc. is coming first
  • í

    Ícar

    03/02/2023, 5:19 PM
    I'd like to execute a worker every X minutes to sync an R2 bucket from a remote (with scp, for example), but with files sizes in the order of MBs, I'll hit the worker time limit. Is there any other way to approach this that doesn't involve using something like a Github/Gitlab action to upload?
  • s

    Skye

    03/02/2023, 5:32 PM
    How often is X?
  • s

    Skye

    03/02/2023, 5:32 PM
    If it's an hour or more, your crons can run for 15 minutes continuously
  • í

    Ícar

    03/02/2023, 5:37 PM
    It can be an hour, yes
  • s

    Skye

    03/02/2023, 5:40 PM
    Awesome, I believe you'll need to set it to unbound mode, meaning you're billed for running duration as opposed to a counter of 1 per request, but beyond that you should be good!
  • t

    theGagne

    03/02/2023, 7:28 PM
    and with the official shoutout on the blog today, I think Hono wins 🙂
  • d

    dale

    03/03/2023, 7:04 AM
    Hi. Is there any additional network limits applied to a cron worker, compared to an ordinary worker invoked by an outside request? I get a strange 404 from my cron worker. The cron worker does a request to another worker through a service binding, which in turn tries to do a request to an external api. The fetch request to the external api fails with 404 when invoked from the cron worker. But if i trigger this from the outside (Postman for example) it will succeed.
  • k

    kian

    03/03/2023, 9:19 AM
    There is nothing that'd cause a Scheduled Event to be 404'd and a Fetch Event not to be 404'd
  • h

    hazcod

    03/03/2023, 9:26 AM
    Is there a channel to post small jobs around Workers? Or is this the right place I would need someone to convert to wrangler@2 and cleanup a GitHub repo and Actions.
  • h

    hazcod

    03/03/2023, 9:27 AM
    Lack of time for myself.
  • d

    dale

    03/03/2023, 9:38 AM
    Kian: Ok interesting. This problem reminds me of when I tried to make fetch request directly to other workers within the same zone. The external API in this case is actually done through a proxy worker within the same zone. But I understand you are saying that there should be no difference depending on how it's triggered
  • k

    kian

    03/03/2023, 9:42 AM
    Fetching same-zone as in custom routes or workers.dev?
1...231423152316...2509Latest