Rate Limit error - Node


#1

Hi everyone,

There is one thing I am not very clear on. Libraries like the Node API https://github.com/Asana/node-asana/ do they include the management of Rate Limit Error, and the retries?

Thanks


#2

The Node API does account for the rate limit:

image


#3

You are the flash :stuck_out_tongue:


#4

Such a noob, I think I looked for it in the code but could not find it. Thanks a lot :heart: you are the bests


#5

It can retry on rate limit responses, but this behavior is set by the dispatcher, which does not retry by default. You should be able to set client.dispatcher.retryOnRateLimit = true after you’ve created the client to enable this, though.


#6

Good to know thanks. And there is still no solution to simulate a rate limit to make it easier to code how the app responds to it?