go-auth0 / auth0

ARCHIVED Go SDK for the Auth0 platform. This project is now being maintained at: https://github.com/auth0/go-auth0

Home Page:https://github.com/auth0/go-auth0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sdk itself handles request for Management Api Rate Limiting

sambhavjain9138 opened this issue · comments

Question

we are currently using this SDK to make management api calls. But we face some error due to management api rate limiting. Following is an article for the same.
https://auth0.com/docs/troubleshoot/customer-support/operational-policies/rate-limit-policy/management-api-endpoint-rate-limits

During this request, auth0 returns a status code of 409, which helps us identify that the error is due to rate limiting. So can sdk itself make a small delay and then make a retry, during such responses?

Even if it doesnt, How can we get this response status code in the response so as to make such check and introduce delay?

Closed and cloned this issue to auth0/go-auth0#23