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

298
Visualizações
Node.js application doesnt start up on heroku

I am trying to understand why is my heroku application not working anymore. It worked before, but suddenly it started showing an error in its logs:

2021-11-20T17:43:09.447233+00:00 heroku[Worker.1]: Process exited with status 1 2021-11-20T17:43:09.592799+00:00 heroku[Worker.1]: State changed from up to crashed 2021-11-20T17:55:53.598178+00:00 heroku[Worker.1]: State changed from crashed to starting 2021-11-20T17:55:55.576714+00:00 heroku[Worker.1]: Starting process with command node main.js 2021-11-20T17:55:56.282257+00:00 heroku[Worker.1]: State changed from starting to up 2021-11-20T17:55:56.614501+00:00 heroku[Worker.1]: Process exited with status 1

And it wont start the application at all. Why is it not working?

I also get this error occasionally:

2021-11-20T20:25:09.785827+00:00 app[Worker.1]: /app/node_modules/discord.js/src/rest/APIRequest.js:33 2021-11-20T20:25:09.785842+00:00 app[Worker.1]: agent ??= new https.Agent({ ...this.client.options.http.agent, keepAlive: true }); 2021-11-20T20:25:09.785842+00:00 app[Worker.1]: ^^^ 2021-11-20T20:25:09.785842+00:00 app[Worker.1]: 2021-11-20T20:25:09.785843+00:00 app[Worker.1]: SyntaxError: Unexpected token '??=' 2021-11-20T20:25:09.785843+00:00 app[Worker.1]: at wrapSafe (internal/modules/cjs/loader.js:1001:16) 2021-11-20T20:25:09.785843+00:00 app[Worker.1]: at Module._compile (internal/modules/cjs/loader.js:1049:27) 2021-11-20T20:25:09.785843+00:00 app[Worker.1]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) 2021-11-20T20:25:09.785844+00:00 app[Worker.1]: at Module.load (internal/modules/cjs/loader.js:950:32) 2021-11-20T20:25:09.785844+00:00 app[Worker.1]: at Function.Module._load (internal/modules/cjs/loader.js:790:12) 2021-11-20T20:25:09.785844+00:00 app[Worker.1]: at Module.require (internal/modules/cjs/loader.js:974:19) 2021-11-20T20:25:09.785845+00:00 app[Worker.1]: at require (internal/modules/cjs/helpers.js:93:18) 2021-11-20T20:25:09.785845+00:00 app[Worker.1]: at Object. (/app/node_modules/discord.js/src/rest/RESTManager.js:4:20) 2021-11-20T20:25:09.785845+00:00 app[Worker.1]: at Module._compile (internal/modules/cjs/loader.js:1085:14) 2021-11-20T20:25:09.785845+00:00 app[Worker.1]: at Object.Module._extensions..js (internal/modules/cjs/l

Edit: I know sending the code is important but I really have no idea what code is relevant to the error and theres a a lot of code in this project.

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

0

There is an error in your program. Try running your program locally, and look for errors. If it works fine locally, then try checking the Heroku configuration.

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