I ended up down this rabbit hole initially when using the python asana 4.0.11
package. I noticed that when I tried to call events_api_instance.get_events(resource)
with one paticular resource, the thread which called that code would just hang… forever. However, it was only for one paticular resource. So after going to the offical API website and making the request through there with the same parameters, I actually got this response:
Code 429:
{
"errors": [
{
"message": "The resource 12345 is currently oversubscribed with event streams. Please try again later.",
"help": "For more information on API status codes and how to handle them, read the docs on errors: https://developers.asana.com/docs/errors"
}
],
"retry_after": 172800
}
I realize that the “retry_after” time is the offender: The python Asana package was eventually going into urllib3/util/retry.py
and calling time.sleep(172800)
which is two days worth of seconds!
My question is: how can I get a resource (in my paticular case a project) out of this state? I can’t find any documentation for this paticular error on the website and have no idea how to resolve this issue other then cloning my project contents into another project manually.
I’d also like to know what the heck caused my project to get into a state where it always just returns this response and how to not do it again in the future. Thanks for reading.