How to setup retry with Moralis

AFAIK moralis does uses axios-retry and I am curious how to set it up? Documentation is rather sparse.

My goal is to cover some random errors , lost of connection etc. Thank you

what is the context? where do you want to use a retry?

you can also use directly REST HTTP API and handle the retry

when using the JavaScript SDK, you can try to catch an error and try again

Mostly 429 errors(I am using same key across 2 different instances for now) + lost of connections.

I will probably use REST directly. Also sometime I get an error getaddrinfo ENOTFOUND deep-index.moralis.io

429 error are rate limit errors (you can get that error if you make too many requests in a second)

the error with ENOTFOUND looks like a network issue

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.