How to handle the error of over MAU limit?

I would like to handle the error when the MAU rate limit is over.

Could you please tell me how to handle this error?
I guess that I can use error of useAuth0, but I couldn’t find any documents about this.

Thanks

  • Which SDK this is regarding: auth0-react
  • SDK Version: 1.8.0
  • Platform Version: Node 16.4.10

Hi @ijufumi,

Welcome to the Auth0 Community!

Can you post the full error you are seeing? And can you expand on your expectations of how to handle this? Do you have an example of what you mean?

1 Like

Sorry, I can not.

Previously, I faced a MAU rate limit error and upgraded my plan to resolve this issue.
However, I would like to implement MAU rate limit error handling for the future.

Without more information, it is difficult to understand what you are asking. What is the error name and description at least?

1 Like

Sorry for your confusion.

I don’t know what errors are returned when the count of Monthy Active Users is larger than contract one.
Is it possible that the error message is You have reached the global limit for your account?

Like this → Global limit has been reached

That is a rate limit error, and isn’t associated with MAUs.

From what I remember, there is no error that is thrown if you are over the MAU limit.

1 Like

Thanks for your response!
I got it.

Can I handle the rate limit error using error of useAuth0 of auth0-react ?

How do you want to handle the error? With an error page?

Yes, exactly!

I want to show the error page when the rate limit error happened.

If possible, I would like to switch error pages depending on the cause.

Can you share the existing code that is causing the error? Also, to be clear, you are calling the management API and getting a rate limit error? I ask because the management API is very limited for use with SPAs, and hitting the rate limit suggests something unintended is causing the increase in request volume.

Otherwise, it sounds like you just need information on how to handle any HTTP error in react.

Thank you for your response!

Our codes use auth0-react like the code of Getting started.

Therefore, I think it seems there are no problems with our codes.

Otherwise, it sounds like you just need information on how to handle any HTTP error in react.

It seems we can handle with error of useAuth0.
Is it correct?

As long as the error is being returned in the useAuth0 hook, the state of the hook should include an error and you can render a component/element. There is an example in our demo. You can see it in action here:

1 Like

Thank you for your sharing!

I’ll try it!

1 Like