Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

333
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda