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

    Skye

    04/23/2023, 12:28 PM
    You need to add this compat flag
  • s

    sathoro

    04/23/2023, 12:29 PM
    ah I need
    --experimental-local
  • n

    nelii

    04/23/2023, 12:29 PM
    someone hacked me
  • n

    nelii

    04/23/2023, 12:29 PM
    they say tehy wanna dox me
  • s

    sathoro

    04/23/2023, 12:29 PM
    that's good
  • n

    nelii

    04/23/2023, 12:30 PM
    with this link i clicked it then it showed my ip and adress
  • n

    nelii

    04/23/2023, 12:30 PM
    its not good
  • s

    sathoro

    04/23/2023, 12:33 PM
    getting same error 😦
  • s

    Skye

    04/23/2023, 12:34 PM
    Is your wrangler version up to date?
  • s

    sathoro

    04/23/2023, 12:37 PM
    let me update
  • m

    Murder Chicken

    04/23/2023, 12:42 PM
    In the documentation regarding simultaneous open connections, it says
    Once a Worker has six connections open, it can still attempt to open additional connections. However, these attempts are put in a pending queue
    however, on an *unbound * scheduledEvent worker I'm testing, I'm seeing that anything over 6 connections triggers failure in the log saying that the Request limit was reached. I thought that exceeding this limit only put further requests into first-in-last-out queue and didn't interrupt the program flow?
  • s

    Skye

    04/23/2023, 12:43 PM
    The request limit being reached sounds like you're reaching the cap of total requests (1000 for unbound), rather than the cap of outgoing connections 🤔
  • m

    Murder Chicken

    04/23/2023, 12:43 PM
    Further context: unbound worker, total of 330 fetch requests within, executed by cron, locally works, production fails with a log message.
  • m

    Murder Chicken

    04/23/2023, 12:45 PM
    That's what I thought so I debugged it further. Only the expected 330 fetch requests being executed. Locally this works in unbound mode. On production it fails. If I reduce the fetch requests to 5 and redeploy, it seems to not fail with the error.
  • s

    sathoro

    04/23/2023, 12:45 PM
    we run 10 at the same time in production with unbounded no problem
  • m

    Murder Chicken

    04/23/2023, 12:45 PM
    The error seems to be tied to the simultaneous open connection limit and not the request limit.
  • m

    Murder Chicken

    04/23/2023, 12:46 PM
    I'm stuffing all of the requests into a single promise.all and not batching them... that was my next step but I want to validate that I'm not misunderstanding the documentation around simultaneous open connections before I just through hoops.
  • s

    sathoro

    04/23/2023, 12:48 PM
    yeah we are doing the same and no issue here
  • m

    Murder Chicken

    04/23/2023, 12:48 PM
    Curious.
  • s

    sathoro

    04/23/2023, 12:48 PM
    btw I updated wrangler and getting some weird errors...
    Copy code
    workerd/jsg/util.c++:427: error: e = kj/compat/tls.c++:215: failed: TLS peer's certificate is not trusted; reason = unable to get local issuer certificate
  • s

    sathoro

    04/23/2023, 12:49 PM
    had to turn off my VPN... it worked fine with the old version 😦
  • s

    sathoro

    04/23/2023, 12:49 PM
    man I'm getting all sorts of weird errors with this new version 😦
  • s

    sathoro

    04/23/2023, 12:49 PM
  • h

    HardAtWork

    04/23/2023, 12:49 PM
    Looks like your VPN does some traffic interception, which requires a cert that
    workerd
    can't read.
  • s

    sathoro

    04/23/2023, 12:50 PM
    this is with my VPN off now
  • s

    sathoro

    04/23/2023, 12:50 PM
    it errored out before it got to this code before
  • s

    sathoro

    04/23/2023, 12:50 PM
    it is when calling Supabase to validate a JWT
  • h

    HardAtWork

    04/23/2023, 12:50 PM
    You should be able to use
    --compatibility-flags
    without
    --experimental-local
  • s

    sathoro

    04/23/2023, 12:51 PM
    okay I'll try it, the docs said to use it
  • s

    sathoro

    04/23/2023, 12:51 PM
    alright we are getting somewhere
1...241024112412...2509Latest