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

223
Visualizações
discord bot crashing when i try to delete ticket

everything works, but when i try to press delete ticket button it crashes the bot and it doesn't even delete the ticket + doesn't send the log of the ticket that it should send.

error i get when i press delete ticket button:


2022-01-11T18:42:09.631377+00:00 app[Worker.1]:                     err = new got.ParseError(e, statusCode, opts);

2022-01-11T18:42:09.631378+00:00 app[Worker.1]:                           ^

2022-01-11T18:42:09.633302+00:00 app[Worker.1]: ErrorClass [ParseError]: Unexpected token '<' at 1:1 in https://hastebin.com/documents

2022-01-11T18:42:09.633304+00:00 app[Worker.1]: <!DOCTYPE HTML>

2022-01-11T18:42:09.633305+00:00 app[Worker.1]: ^

2022-01-11T18:42:09.633305+00:00 app[Worker.1]:     at /app/node_modules/got/index.js:115:12

2022-01-11T18:42:09.633306+00:00 app[Worker.1]:     at BufferStream.<anonymous> (/app/node_modules/read-all-stream/index.js:64:3)

2022-01-11T18:42:09.633306+00:00 app[Worker.1]:     at BufferStream.emit (node:events:402:35)

2022-01-11T18:42:09.633306+00:00 app[Worker.1]:     at finishMaybe (/app/node_modules/readable-stream/lib/_stream_writable.js:630:14)

2022-01-11T18:42:09.633307+00:00 app[Worker.1]:     at afterWrite (/app/node_modules/readable-stream/lib/_stream_writable.js:492:3)

2022-01-11T18:42:09.633307+00:00 app[Worker.1]:     at processTicksAndRejections (node:internal/process/task_queues:85:21) {

2022-01-11T18:42:09.633308+00:00 app[Worker.1]:   host: 'hastebin.com',

2022-01-11T18:42:09.633308+00:00 app[Worker.1]:   hostname: 'hastebin.com',

2022-01-11T18:42:09.633309+00:00 app[Worker.1]:   method: 'POST',

2022-01-11T18:42:09.633309+00:00 app[Worker.1]:   path: '/documents',

2022-01-11T18:42:09.633309+00:00 app[Worker.1]:   statusCode: 503,

2022-01-11T18:42:09.633309+00:00 app[Worker.1]:   statusMessage: 'Service Unavailable'

2022-01-11T18:42:09.633310+00:00 app[Worker.1]: }

2022-01-11T18:42:09.938311+00:00 heroku[Worker.1]: State changed from up to crashed``` 
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

From the 503 service unavailable error it looks like hastebin was experiencing problems/downtime when you encountered this error. Make sure you are checking the status code, or catching errors when you send requests and receive HTTP responses from web servers. You got a fatal error because you likely tried to parse the HTML error page body as JSON.

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