Moralis node returns 403 error

I’m using ethers js and trying to query some data from the moralis node. It used to work just fine, but now it returns this error:

Error: bad response (status=403, headers={“date”:“Thu, 04 Nov 2021 08:48:08 GMT”,“content-type”:“text/plain; charset=UTF-8”,“content-length”:“16”,“connection”:“close”,“x-frame-options”:“SAMEORIGIN”,“referrer-policy”:“same-origin”,“cache-control”:“private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0”,“expires”:“Thu, 01 Jan 1970 00:00:01 GMT”,“expect-ct”:“max-age=604800, report-uri=“https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct””,“server”:“cloudflare”,“cf-ray”:“6a8c94e82e41dfa5-FRA”}, body=“error code: 1020”, requestBody="{“method”:“eth_blockNumber”,“params”:[],“id”:42,“jsonrpc”:“2.0”}", requestMethod=“POST”, url=“https://speedy-nodes-nyc.moralis.io/api-key-hidden/eth/mainnet/archive”, code=SERVER_ERROR, version=web/5.4.0)

Also sometimes it would return some other error like 503. Really not sure what’s going on here and why did it started happening.

This could be related to rate limiting, if you made more than 3600 requests in a minute.
It could be a ban that will be removed in one hour in case that you have a rate limiting problem now.

He actually is on the 5,000 req/min plan, which got me wondered of the error, and I checked the nodes usage, limit wasn’t hit at this time

1 Like

Hi @dom!

We found out that you were indeed hitting your current rate limit at times (5,000 req/min), meaning you’re getting some nice usage, and you might benefit from further increasing your limit.

Let me know if you’re willing to go for a higher limit, and I’ll get back to you with more details. The higher ones than 5,000 req/min are these limits, and their monthly pricings

  • 7500 req/min $100/mo
  • 10,000 req/min $200/mo

Let me know if you have any other questions. Thanks! :slight_smile:

1 Like