Code Monkey home page Code Monkey logo

Comments (2)

riordanp avatar riordanp commented on August 19, 2024

Hi @anishsamant, this sounds like an issue with your RPC provider. Please check you are not being rate limited or similar

from liquidator-v3.

samlaf avatar samlaf commented on August 19, 2024

Were you using the solana endpoint (https://api.devnet.solana.com) instead of mango endpoint (https://mango.rpcpool.com/946ef7337da3f5b8d3e4a34e7f88) by any chance @anishsamant ?

I'm observing similar behavior when using the solana public endpoint. First getting

Error: Error reloading accounts: FetchError: request to https://api.mainnet-beta.solana.com/ failed, reason: socket hang up
    at /Users/samlaf/devel/solana/mangomarkets/liquidator-v3/scripts/mangoAccounts.ts:37:15
    at Generator.throw (<anonymous>)
    at rejected (/Users/samlaf/devel/solana/mangomarkets/liquidator-v3/scripts/mangoAccounts.ts:6:65)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

and when I retry I get

Server responded with 429 Too Many Requests.  Retrying after 500ms delay...
Server responded with 429 Too Many Requests.  Retrying after 500ms delay...
Server responded with 429 Too Many Requests.  Retrying after 500ms delay...
Server responded with 429 Too Many Requests.  Retrying after 500ms delay...
Server responded with 429 Too Many Requests.  Retrying after 500ms delay...
Server responded with 429 Too Many Requests.  Retrying after 500ms delay...
......... (~ 100 times) ........... (and then)
/Users/samlaf/devel/solana/mangomarkets/liquidator-v3/scripts/mangoAccounts.ts:6
    try {
                                                                ^
Error: Error reloading accounts: FetchError: request to https://api.mainnet-beta.solana.com/ failed, reason: connect ECONNREFUSED 147.75.42.181:443
    at /Users/samlaf/devel/solana/mangomarkets/liquidator-v3/scripts/mangoAccounts.ts:37:15
    at Generator.throw (<anonymous>)
    at rejected (/Users/samlaf/devel/solana/mangomarkets/liquidator-v3/scripts/mangoAccounts.ts:6:65)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

from liquidator-v3.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.