Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to restart #3

Open
Eomm opened this issue Oct 15, 2023 · 0 comments
Open

Fail to restart #3

Eomm opened this issue Oct 15, 2023 · 0 comments

Comments

@Eomm
Copy link
Owner

Eomm commented Oct 15, 2023

Watching a file and restaring the application triggers:

[10:26:57.534] FATAL (telegram-bot-stand-up/29594): fastify-telegram: bot.launch() failed
    err: {
      "type": "TelegramError",
      "message": "409: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running",
      "stack":
          Error: 409: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
              at Telegram.callApi (/Users/mspigolon/workspace/_experiments/telegram-bot-stand-up/node_modules/telegraf/lib/core/network/client.js:294:19)
              at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
              at async [Symbol.asyncIterator] (/Users/mspigolon/workspace/_experiments/telegram-bot-stand-up/node_modules/telegraf/lib/core/network/polling.js:30:33)
              at async Polling.loop (/Users/mspigolon/workspace/_experiments/telegram-bot-stand-up/node_modules/telegraf/lib/core/network/polling.js:73:30)
              at async Telegraf.launch (/Users/mspigolon/workspace/_experiments/telegram-bot-stand-up/node_modules/telegraf/lib/telegraf.js:189:13)
      "response": {
        "ok": false,
        "error_code": 409,
        "description": "Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"
      },
      "on": {
        "method": "getUpdates",
        "payload": {
          "timeout": 50,
          "offset": 758646331,
          "allowed_updates": []
        }
      }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant