I have a cron trigger that executes every 30 minutes. It uses a single invocation of R2 bucket.get(key). This works great, however I noticed an error in the logs for one of the trigger executions:
Error
get: Reduce your rate of simultaneous reads on the same object. (10058)
Seemed to be a transient error because it hasn’t happened before or since.
Question: I couldn’t find any information on the web for this error. Is there a listing of all the R2 error codes somewhere?
I do, but only for errors I know I can retry. I was hoping to get a more comprehensive list from the Cloudflare team to bolster my retry logic proactively rather than waiting to discover all the different transient errors.
It’s much easier to retry get operations. put ops would require cloning the request body which is wasteful in most cases so I let put errors bubble all the way to the client and retry them there.
Thanks for posting. It’s the weekend, so it may be a little while before an employee sees it. But the link here helps. We can try to escalate that for a better response during the work week if it doesn’t get any traction.