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.