Durable Objects Subrequests

Hello,

I’m hitting the Error: too many subrequests, using durable objects.

Here’s the rough flow:

  1. request → worker → durable object A
  2. request → durable object B
  3. api request
  4. request → durable object B
  5. if (fail to meet criteria) repeat 3,4 (this happens maybe 5 times then the error happens)

Shouldn’t I have 50 subrequests? Seems like I’m getting the error at about 12-15 only…

Can you count how many storage operations you’re doing as well? I wouldn’t expect it, but maybe there’s a bug where those count.

1 Like

@Judge thanks for getting back to me.

I figured this out yesterday that it was some pesky code in a library I was using that was doing it’s own retries with exponential backoff.

Things seem to be fine now. I LOVE THESE THINGS!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.