502 Bad Gateway
See original GitHub issueat C:\Users\nikhi\OneDrive\Documents\GitHub\RedditGram\node_modules\node-telegram-bot-api\src\telegramPolling.js:74:15
at tryCatcher (C:\Users\nikhi\OneDrive\Documents\GitHub\RedditGram\node_modules\bluebird\js\main\util.js:26:23)
at Promise._settlePromiseFromHandler (C:\Users\nikhi\OneDrive\Documents\GitHub\RedditGram\node_modules\bluebird\js\main\promise.js:507:31)
at Promise._settlePromiseAt (C:\Users\nikhi\OneDrive\Documents\GitHub\RedditGram\node_modules\bluebird\js\main\promise.js:581:18)
at Promise._settlePromises (C:\Users\nikhi\OneDrive\Documents\GitHub\RedditGram\node_modules\bluebird\js\main\promise.js:697:14)
at Async._drainQueue (C:\Users\nikhi\OneDrive\Documents\GitHub\RedditGram\node_modules\bluebird\js\main\async.js:123:16)
at Async._drainQueues (C:\Users\nikhi\OneDrive\Documents\GitHub\RedditGram\node_modules\bluebird\js\main\async.js:133:10)
at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\nikhi\OneDrive\Documents\GitHub\RedditGram\node_modules\bluebird\js\main\async.js:15:14)
at processImmediate [as _immediateCallback] (timers.js:383:17)
Unhandled rejection Error: 502 <html>
<head><title>502 Bad Gateway</title></head> <body bgcolor="white"> <center>502 Bad Gateway
</center><center>nginx/1.6.2</center> </body> </html>
Issue Analytics
- State:
- Created 8 years ago
- Comments:11 (1 by maintainers)
Top Results From Across the Web
502 Bad Gateway - HTTP - MDN Web Docs
The HyperText Transfer Protocol (HTTP) 502 Bad Gateway server error response code indicates that the server, while acting as a gateway or ...
Read more >How to Fix 502 Bad Gateway Error - Hostinger
The 502 Bad Gateway error indicates that the server which you're connecting to received an invalid response. When accessing a URL, your browser ......
Read more >Bad Gateway Errors: Why They Happen and 5 Solutions - Okta
A 502 bad gateway message indicates that one server got an invalid response from another. In essence, you've connected with some kind of...
Read more >What is a 502 Bad Gateway Error (And How Can I Fix It)?
A 502 Bad Gateway Error means that the web server you've connected to is acting as a proxy for relaying information from another...
Read more >How To Fix a 502 Bad Gateway Error - Kinsta
The 502 (Bad Gateway) status code indicates that the server, while acting as a gateway or proxy, received an invalid response from an...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

That happened to me right now. And telegram was offline for a couple of hours (and apparently still having issues). There’s not so much we can do.
Whats pm2? What would be the best way to handle this error anyway? Currently my program that uses telegram would freeze indefinitely (with no prints) during that Telegram server issue, a previous version of this python-telegram-bot would raise TimedOut() errors.