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

Network error: Error: connect ETIMEDOUT 149.154.167.220:443 #198

Open
raminafhami opened this issue May 25, 2018 · 2 comments
Open

Network error: Error: connect ETIMEDOUT 149.154.167.220:443 #198

raminafhami opened this issue May 25, 2018 · 2 comments

Comments

@raminafhami
Copy link

raminafhami commented May 25, 2018

Hi
I have this code block in server.js file:

const Telegram = require('telegram-node-bot')

const tg = new Telegram.Telegram('***********token**************',{
    workers:1
});

const pingController = require('./controllers/ping')
    ,otherwiseController = require('./controllers/otherwise')

tg.router.when(new Telegram.TextCommand('/ping','pingCommand'), new pingController())
    .otherwise(new otherwiseController());

and this code block in ping.js file:

const Telegram = require('telegram-node-bot');
class pingController extends Telegram.TelegramBaseController{
    pingHandler($){
        $.sendMessage('pong');
    }

    get routes() {
        return{
            'pingCommand': 'pingHandler'
        };
    }
}

module.exports = pingController;

and finally this code block in otherwise file:

const Telegram = require('telegram-node-bot');
class otherwiseController extends Telegram.TelegramBaseController{
    handler($){
        $.sendMessage('Sorry!!!')
}
}

module.exports = otherwiseController;

when I run node server.js, I just got error like this: [error]

Network error: Error: connect ETIMEDOUT 149.154.167.220:443 at Object._errnoException (util.js:1031:13) at _exceptionWithHostPort (util.js:1052:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1195:14) request TelegramApiRequest { _method: 'setWebhook', _params: { url: '' }, _multipart: undefined }

Also, the telegram is filtered in our country!!!, and I use the Siphon 3 proxy.

@shaoyao
Copy link

shaoyao commented Jul 12, 2018

I met the same question

@Barabba11
Copy link

Hi, it looks the IP is old, on my phone it works, but on NR i have the same problem..
we need the new server IP

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

3 participants