Durable Objects error
I have a route on my Worker that allows me to flush and re-obtain information from a 3rd-party API.
However, recently, when I invoke that route, I get this error:
{"error":"Durable Object storage operation exceeded timeout which caused object to be reset."}
How do I fix this?
2 Replies
Has anything changed with the 3rd party API? Or your code? Can you share the code and any way we can reproduce it?
It's YouTube API, think there wasn't any changes recently. Only change to my code was giving the worker access to a secret so it could update itself.
The code for the problematic route starts from here: https://github.com/neuroverse-fm/swarm-fm-uptime-worker/blob/cf04243c380510da22c635fba8605b89f5a0fe79/src/index.ts#L205
"Fixed" this error for now; I've just deleted the binding and re-bound it. Ran the route again and it works.