Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 99ee54b

Browse files
committed
add an error handling note to the readme
1 parent 4e385cb commit 99ee54b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,16 @@ With all in place, the next snippets shows how to verify an RS256 signed ID toke
213213
Provided something goes wrong, a ``TokenValidationError`` will be raised. In this
214214
scenario, the ID token should be deemed invalid and its contents not be trusted.
215215

216+
==============
217+
Error Handling
218+
==============
219+
220+
When consuming methods from the API clients, the requests could fail for a number of reasons:
221+
- Invalid data sent as part of the request: An ``Auth0Error` is raised with the error code and description.
222+
- Global or Client Rate Limit reached: A ``RateLimitError`` is raised and the time at which the limit
223+
resets is exposed in the ``reset_at`` property. When the header is unset, this value will be ``-1``.
224+
- Network timeouts: Adjustable by passing a the ``timeout`` argument to the client. See the `rate limit docs <https://auth0.com/docs/policies/rate-limits>`_ for details.
225+
216226
Available Management Endpoints
217227
==============================
218228

0 commit comments

Comments
 (0)