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

125
Visualizações
Twitter filtered stream operational disconnects

I've created a discord bot that runs on a raspberry pi 4, which shares tweets from specific users. The stream part of the code is inspired by this one:

https://github.com/bradtraversy/real-time-tweet-stream

I’m listening to a filtered stream and get operational disconnects every now and then. The exact error message is:

{
errors: [
{
title: ‘operational-disconnect’,
disconnect_type: ‘UpstreamOperationalDisconnect’,
detail: ‘This stream has been disconnected upstream for operational reasons.’,
type: ‘link removed for forum rules’
}
]
}

Everytime I get this error, my bot is offline from the stream (but still online on discord) and I have to restart the bot manually in order to reconnect to the stream. Is there a way to prevent this kind of error, and if not, to automatically restart the stream when it get errors?

Thank you!

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I think I've found the error. It's not in the code. I'm using screen in order to open many terminal windows when I'm connected via ssh from another computer.

I wanted to be able to close the terminal (and the ssh connection) without ending the js script. I've google it and found screen but it seems to have some problems.

When I stay connected with my other computer and don't close ssh, it's not getting operational disconnects.

So now the question is why it's getting those operational disconnects when I put the terminal running the script in background using screen?

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