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

158
Views
El trabajador de Heroku se bloquea instantáneamente al iniciar el bot de discordjs

He estado trabajando en un bot de discordia que funciona bien cuando se ejecuta localmente, pero falla cuando está alojado en heroku.

  • Traté de crear un Procfile con la siguiente línea: worker : node bot.js
  • También revisé los recursos de heroku, deshabilité la web y habilité el dinamómetro del trabajador.
  • No he superado el límite mensual de 550 horas.

Este es el paquete.json:

 { "name": "randomizerbot", "version": "1.0.0", "description": "", "main": "bot.js", "scripts": { "start": "node bot.js" }, "engines": { "node": ">=16.6.0" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "discord.js": "^13.6.0", "dotenv": "^16.0.0", "nodemon": "^2.0.15" } }

Esta es mi estructura de archivos:

estructura de archivos

Este es el registro de errores:

 2022-07-11T14:48:48.995714+00:00 heroku[worker.1]: State changed from crashed to starting 2022-07-11T14:48:51.478349+00:00 heroku[worker.1]: Starting process with command `: node bot.js` 2022-07-11T14:48:52.092041+00:00 heroku[worker.1]: State changed from starting to up 2022-07-11T14:48:52.341005+00:00 heroku[worker.1]: Process exited with status 0 2022-07-11T14:48:52.809725+00:00 heroku[worker.1]: State changed from up to crashed

¿Hay algo que me estoy perdiendo? Gracias por adelantado.

about 4 years ago · Juan Pablo Isaza
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!