[SOLVED] I'm suddenly being rate limited

Hi there - my app is suddenly being rated limited - started happening sometime this afternoon.

The code is unchanged in about a week, iā€™m not doing anything new and I seem to be well under the limits for the pro plan.

The three servers Iā€™m using areā€¦

https://ukg911ra3l4a.usemoralis.com:2053/server
https://nfo3toxbrq3f.usemoralis.com:2053/server
https://bevndhaaxzdb.usemoralis.com:2053/server

Thanks, Bret

what is the rate limit error message that you get?

{ā€œcodeā€:141,ā€œerrorā€:"Too many requests to Web3API from this particular client, the clients needs to wait before sending more requests. This can be adjusted using Moralis.settings.setAPIRateLimit. Read More: https://docs.moralis.io/moralis-server/web3-sdk/rate-limit."}

All my servers run this at the startā€¦

Moralis.settings.setAPIRateLimit({anonymous:3500, authenticated:3500, windowMs:60000});

it looks like you have a cloud function name setAPIRateLimit_Max that does that

Yes - i call it at the start of every run

how do you know when you called it or not, you could add that rate limit code without a cloud function and it will be called automatically when server restarts

Itā€™s part of my pre-run validation. It ran for about 8 hours before it hit the issue.
Iā€™ve just recalled it mid-run for both servers to see it it just got unset somehow.

Iā€™ll let you know is the app sees this againā€¦

Is this how i would do that?

yes, you can do it like that, with that first line

Fantastic - I totally missed that :roll_eyes:

Thanks again for the stellar help!

You can close this call