Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

322
Views
JS SDK v2.0.16 Error: 13 INTERNAL: received RST_STREAM with code 0

What does this error mean?

Error: 13 INTERNAL: received RST_STREAM with code 0

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

At the moment, there are three endpoints which aren't working very well and result in an RST_STREAM error which the SDK doesn't handle (even v2.1.1), if you override the SDK's default list of nodes you should be ok.

There is an issue to track this in github already: https://github.com/hashgraph/hedera-sdk-js/issues/622

In the mean time you can handle errors as follows:

With Promise

    let retry = true;
    while (retry) {
        await new AccountBalanceQuery()
            .setAccountId(operatorId)
            .execute(client)
            .then(() => {
                retry = false;
                console.log("---> SUCCESS");
            })
            .catch(error => {
                console.error(error);
                if (error.message.includes('RST_STREAM')) {
                    console.log("---> RETRY");
                }
            });
    }
}

with try/catch

    let retry = true;
    while (retry) {
        try {
            await new AccountBalanceQuery()
                .setAccountId(operatorId)
                .execute(client);

                retry = false;
                console.log("---> SUCCESS");
        } catch (error) {
            console.error(error);
            if (error.message.includes('RST_STREAM')) {
                console.log("---> RETRY");
            }
        }
    }

That way, if other nodes fail to respond, you'll be dealing with it nicely.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!