Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

μ-bot: Failed to start: Error: 404: Not Found #13

Open
Kevinmrqz opened this issue Aug 20, 2018 · 5 comments
Open

μ-bot: Failed to start: Error: 404: Not Found #13

Kevinmrqz opened this issue Aug 20, 2018 · 5 comments

Comments

@Kevinmrqz
Copy link

Whenever I try to run or deploy the bot y got the error "μ-bot: Failed to start: Error: 404: Not Found". I've been also trying using the examples but it gives me the same error. However this error only happens on windows environments because it works when I do it on Mac. Hope you guys can help me if there's a solution or if it just doesn't work on windows.

@thomasgroch
Copy link

Could you provide more information on how you are starting your bot on windows environment?

@emersonlaurentino
Copy link

I have the same problem in the heroku environment

2018-10-10T21:02:44.172955+00:00 heroku[web.1]: Starting process with command `micro-bot -p 37325`
2018-10-10T21:02:48.873602+00:00 app[web.1]: μ-bot: Failed to start: Error: 404: Not Found

@emersonlaurentino
Copy link

I was able to solve this problem by setting the variables correctly, but i have another problem:

when my bot is runnig in heroku:

2018-10-10T21:30:00.554084+00:00 heroku[web.1]: Starting process with command `micro-bot -p 12859`
2018-10-10T21:30:03.452054+00:00 app[web.1]: μ-bot: Starting @MY_BOT
2018-10-10T21:30:03.541865+00:00 app[web.1]: μ-bot: Bot started
2018-10-10T21:31:00.846057+00:00 heroku[web.1]: State changed from starting to crashed
2018-10-10T21:31:00.736316+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2018-10-10T21:31:00.736450+00:00 heroku[web.1]: Stopping process with SIGKILL
2018-10-10T21:31:00.825657+00:00 heroku[web.1]: Process exited with status 137

@emersonlaurentino
Copy link

emersonlaurentino commented Oct 10, 2018

I was able to solve this problem too. I changed web to work on Procfile and run the command:

heroku scale web=0 worker=1

Naltox/telegram-node-bot#119

@lgg
Copy link

lgg commented Dec 15, 2018

@emersonlaurentino how you solved this?

$ npm start

> [email protected] start D:\dev\temp\testbot\smart-bot
> micro-bot -t 'tokenHERE' ./index.js

μ-bot: Failed to start: Error: 404: Not Found

also tried:

$ npm start

> [email protected] start D:\dev\temp\testbot\smart-bot
> micro-bot -t 'tokenHERE' index.js

μ-bot: Failed to start: Error: 404: Not Found

ls -al

$ ls -al
total 125
drwxr-xr-x 1 user 197121     0 дек 15 04:20 ./
drwxr-xr-x 1 user 197121     0 дек 13 08:55 ../
-rw-r--r-- 1 user 197121   249 дек 13 08:53 .editorconfig
-rw-r--r-- 1 user 197121    14 дек 13 08:53 .eslintignore
-rw-r--r-- 1 user 197121    30 дек 13 08:53 .eslintrc
drwxr-xr-x 1 user 197121     0 дек 15 04:21 .git/
-rw-r--r-- 1 user 197121   550 дек 13 08:53 .gitignore
-rw-r--r-- 1 user 197121   351 дек 13 11:49 index.js
drwxr-xr-x 1 user 197121     0 дек 15 04:20 node_modules/
-rw-r--r-- 1 user 197121   856 дек 15 04:19 package.json
-rw-r--r-- 1 user 197121 52146 дек 15 04:20 package-lock.json
-rw-r--r-- 1 user 197121   797 дек 13 08:53 readme.md

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants