https://discord.cloudflare.com logo
Join Discord
Powered by
# durable-objects
  • j

    john.spurlock

    05/09/2023, 9:56 PM
    oh like you just saw it once with no functional outage? I'm seeing all callers into the DO in question fail with internal error/etc for about 15/20 minutes now
  • j

    john.spurlock

    05/09/2023, 9:56 PM
    hard to tell, my logs aren't exactly realtime
  • d

    Dani Foldi

    05/09/2023, 9:56 PM
    yeah, although you probably do as many DO requests in a second as we had yesterday 😅
  • j

    john.spurlock

    05/09/2023, 9:59 PM
    fortunately not a very busy time, handling about 2.5k req/5m -> 8.3 req/s
  • d

    Dani Foldi

    05/09/2023, 9:59 PM
    @ckoeninger
  • j

    john.spurlock

    05/09/2023, 10:06 PM
    thanks all, looks like it's back in business, from what I can tell, still in DFW so whatever was happening was maybe machine specific

    https://cdn.discordapp.com/attachments/773219443911819284/1105616759672799242/image.pngâ–¾

  • s

    sathoro

    05/10/2023, 8:09 AM
    how to get more visibility on what the errors are for my DO?

    https://cdn.discordapp.com/attachments/773219443911819284/1105768443476717629/image.pngâ–¾

  • s

    sathoro

    05/10/2023, 8:09 AM
    these are likely happening within an alarm btw
  • s

    sathoro

    05/10/2023, 8:27 AM
    oh boy, I think we are running into the DO storage value size limit 😦 we have a task queue and store each task as their own value and they can get quite large
  • s

    sathoro

    05/10/2023, 8:29 AM
    we can at least delete the checkpoint values when saving the final full output on the last step so that will need to be good enough for now
  • s

    sathoro

    05/10/2023, 8:31 AM
    one thing I could use help with though is how this error didn't get caught in Sentry. we catch all exceptions but this didn't get caught. does it throw an error or is the DO just killed?
  • s

    sathoro

    05/10/2023, 8:56 AM
    did some testing, and it does seem to throw an error.
    RangeError: Values cannot be larger than 131072 bytes.
    . time to figure out how this was not caught in our code
  • s

    sathoro

    05/10/2023, 8:59 AM
    missing an
    await
    keyword, lovely
  • c

    Crazy Rabbit

    05/10/2023, 11:19 AM
    Welcome to JavaScript
  • s

    sathoro

    05/10/2023, 4:52 PM
    I have found it particularly confusing when using DOs when to await and not. because with storage operations you don't usually need to await (since it will not kill the DO until the op is complete) but in this case it bit me
  • u

    Unsmart | Tech debt

    05/10/2023, 4:55 PM
    I personally always await ops before returning to the user 🤷
  • d

    Dani Foldi

    05/10/2023, 4:57 PM
    WebStorm complains if I leave Promises unawaited
  • s

    sathoro

    05/10/2023, 6:55 PM
    this was in an alarm
  • u

    Unsmart | Tech debt

    05/10/2023, 6:56 PM
    in that case before you return the all good to the alarm 😅
  • s

    sathoro

    05/10/2023, 6:57 PM
    same concept I know but we do a lot of stuff in the alarm so I think I was trying to cut down a bit on operations. especially if we do a storage op right before a long IO then waiting seemed unneeded
  • s

    sathoro

    05/10/2023, 6:57 PM
    but yeah dumb optimization
  • h

    hanpolo

    05/10/2023, 9:07 PM
    Are there articles or any thoughts on how to secure durable objects? For example through tokens, or can they be firewalled so they only talk to specific domains etc.
  • h

    HardAtWork

    05/10/2023, 9:32 PM
    I mean, you can’t access DO directly, so any authentication can be handled in your Worker
  • h

    hanpolo

    05/10/2023, 9:41 PM
    So what's to stop someone else writing a worker, getting hold of the DO Id and just calling it?
  • h

    hanpolo

    05/10/2023, 9:42 PM
    Is there some sort of rule that says only workers within the same project can call the DO?
  • k

    kian

    05/10/2023, 9:42 PM
    That’s not quite how DOs work
  • k

    kian

    05/10/2023, 9:42 PM
    If it isn’t bound to your Worker then it can’t be called
  • k

    kian

    05/10/2023, 9:42 PM
    Its not an externally facing thing
  • h

    hanpolo

    05/10/2023, 9:42 PM
    Ok .. what if I'm calling it from a function in my Pages project? Same deal?
  • s

    Skye

    05/10/2023, 9:44 PM
    It's bound to your account, only your scripts can access it
1...550551552...567Latest