Skip to main content
Version: 5.15.0

OnTooManyRequestByLocalError

Description

This handler is called automatically when requests are sent even after being restricted from the server due to excessive requests, such as making at least 1 call per second.
The handler is called when the following error is returned:

When excessive requests continue
statusCode : 403
errorCode : Forbidden
message : 403 Forbidden by Local

Example

Main thread

void Start() {
if(Backend.IsInitialized) {
Backend.ErrorHandler.OnTooManyRequestByLocalError = () => {
Debug.Log("403 local error occurred!!!");
gameObject.GetComponentInChildren<Text>().text = "Excessive requests.";
};
}
}