Error running python bot on Linux VM Azure












-1














I have a python bot that is supposed to be communicating with Telegram and Instagram. All the dependencies and APIs were installed as well as SSL and Certificates. This is the error codes given. What do they mean? Please help.



 Fail to import moviepy. Need only for Video upload.
2019-01-07 03:35:37,494 - telegram.ext.dispatcher - DEBUG - Setting singleton dispatcher as <telegram.ext.dispatcher.Dispatcher object at 0x7f7a94a72da0>
2019-01-07 03:35:37,499 - telegram.bot - DEBUG - Entering: get_chat_administrators
2019-01-07 03:35:37,504 - requests.packages.urllib3.connectionpool - INFO - Startingnew HTTPS connection (1): i.instagram.com
2019-01-07 03:35:37,505 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - DEBUG- Starting new HTTPS connection (1): api.telegram.org
2019-01-07 03:35:37,505 - root - WARNING - If 'per_message=False', 'CallbackQueryHandler' will not be tracked for every message.
2019-01-07 03:35:37,516 - JobQueue - DEBUG - JobQueue thread started
2019-01-07 03:35:37,521 - telegram.ext.updater - DEBUG - dispatcher - started
2019-01-07 03:35:37,521 - telegram.ext.updater - DEBUG - updater - started
2019-01-07 03:35:37,521 - telegram.bot - DEBUG - Entering: set_webhook
2019-01-07 03:35:37,526 - telegram.ext.updater - DEBUG - Updater thread started (webhook)
2019-01-07 03:35:37,531 - telegram.ext.updater - ERROR - unhandled exception in updater
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 156, in _thread_wrapper
target(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 361, in _start_webhook
self.bot)
File "/usr/local/lib/python3.6/dist-packages/telegram/utils/webhookhandler.py", line 46, in __init__
super(WebhookServer, self).__init__(server_address, RequestHandlerClass)
File "/usr/lib/python3.6/socketserver.py", line 453, in __init__
self.server_bind()
File "/usr/lib/python3.6/http/server.py", line 136, in server_bind
socketserver.TCPServer.server_bind(self)
File "/usr/lib/python3.6/socketserver.py", line 467, in server_bind
self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use
Exception in thread updater:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 156, in _thread_wrapper
target(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 361, in _start_webhook
self.bot)
File "/usr/local/lib/python3.6/dist-packages/telegram/utils/webhookhandler.py", line 46, in __init__
super(WebhookServer, self).__init__(server_address, RequestHandlerClass)
File "/usr/lib/python3.6/socketserver.py", line 453, in __init__
self.server_bind()
File "/usr/lib/python3.6/http/server.py", line 136, in server_bind
socketserver.TCPServer.server_bind(self)
File "/usr/lib/python3.6/socketserver.py", line 467, in server_bind
self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use

/usr/local/lib/python3.6/dist-packages/telegram/bot.py:2047: UserWarning: The 'webhook_url' parameter has been renamed to 'url' in accordance with the API
warnings.warn("The 'webhook_url' parameter has been renamed to 'url' in accordance"
2019-01-07 03:35:37,550 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - DEBUG- Starting new HTTPS connection (2): api.telegram.org
2019-01-07 03:35:37,608 - telegram.ext.dispatcher - DEBUG - Dispatcher started
2019-01-07 03:35:37,668 - requests.packages.urllib3.connectionpool - DEBUG - "GET /api/v1/si/fetch_headers/?challenge_type=signup&guid=68add36668da460caec21072e1d9d604 HTTP/1.1" 200 16
2019-01-07 03:35:37,678 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
2019-01-07 03:35:37,947 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - DEBUG- https://api.telegram.org:443 "POST /bot700816500:AAEz0TCibSFYRRuirmSpl-uk-9i_7_aAlxQ/setWebhook HTTP/1.1" 200 64
2019-01-07 03:35:37,948 - telegram.bot - DEBUG - True
2019-01-07 03:35:37,949 - telegram.bot - DEBUG - Exiting: set_webhook
2019-01-07 03:35:38,055 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - DEBUG- https://api.telegram.org:443 "POST /bot700816500:AAEz0TCibSFYRRuirmSpl-uk-9i_7_aAlxQ/getChatAdministrators HTTP/1.1" 400 73
2019-01-07 03:35:38,423 - requests.packages.urllib3.connectionpool - DEBUG - "POST /api/v1/accounts/login/ HTTP/1.1" 200 490
2019-01-07 03:35:38,428 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
2019-01-07 03:35:38,595 - requests.packages.urllib3.connectionpool - DEBUG - "POST /api/v1/qe/sync/ HTTP/1.1" 200 3117
2019-01-07 03:35:38,599 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
2019-01-07 03:35:38,611 - telegram.ext.dispatcher - CRITICAL - stopping due to exception in another thread
2019-01-07 03:35:38,616 - telegram.ext.dispatcher - DEBUG - Dispatcher thread stopped
2019-01-07 03:35:38,619 - telegram.ext.updater - DEBUG - dispatcher - ended
2019-01-07 03:35:38,688 - requests.packages.urllib3.connectionpool - DEBUG - "GET /api/v1/friendships/autocomplete_user_list/ HTTP/1.1" 429 80
Request return 429 error!
{'message': 'Please wait a few minutes before you try again.', 'status': 'fail'}
2019-01-07 03:35:38,707 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
2019-01-07 03:35:39,029 - requests.packages.urllib3.connectionpool - DEBUG - "GET /api/v1/feed/timeline/ HTTP/1.1" 200 796
2019-01-07 03:35:39,037 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
2019-01-07 03:35:39,100 - requests.packages.urllib3.connectionpool - DEBUG - "GET /api/v1/direct_v2/inbox/ HTTP/1.1" 404 0
Request return 404 error!
2019-01-07 03:35:39,109 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
2019-01-07 03:35:39,306 - requests.packages.urllib3.connectionpool - DEBUG - "GET /api/v1/news/inbox/ HTTP/1.1" 200 197
Login success!









share|improve this question







New contributor




NKGTech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    -1














    I have a python bot that is supposed to be communicating with Telegram and Instagram. All the dependencies and APIs were installed as well as SSL and Certificates. This is the error codes given. What do they mean? Please help.



     Fail to import moviepy. Need only for Video upload.
    2019-01-07 03:35:37,494 - telegram.ext.dispatcher - DEBUG - Setting singleton dispatcher as <telegram.ext.dispatcher.Dispatcher object at 0x7f7a94a72da0>
    2019-01-07 03:35:37,499 - telegram.bot - DEBUG - Entering: get_chat_administrators
    2019-01-07 03:35:37,504 - requests.packages.urllib3.connectionpool - INFO - Startingnew HTTPS connection (1): i.instagram.com
    2019-01-07 03:35:37,505 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - DEBUG- Starting new HTTPS connection (1): api.telegram.org
    2019-01-07 03:35:37,505 - root - WARNING - If 'per_message=False', 'CallbackQueryHandler' will not be tracked for every message.
    2019-01-07 03:35:37,516 - JobQueue - DEBUG - JobQueue thread started
    2019-01-07 03:35:37,521 - telegram.ext.updater - DEBUG - dispatcher - started
    2019-01-07 03:35:37,521 - telegram.ext.updater - DEBUG - updater - started
    2019-01-07 03:35:37,521 - telegram.bot - DEBUG - Entering: set_webhook
    2019-01-07 03:35:37,526 - telegram.ext.updater - DEBUG - Updater thread started (webhook)
    2019-01-07 03:35:37,531 - telegram.ext.updater - ERROR - unhandled exception in updater
    Traceback (most recent call last):
    File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 156, in _thread_wrapper
    target(*args, **kwargs)
    File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 361, in _start_webhook
    self.bot)
    File "/usr/local/lib/python3.6/dist-packages/telegram/utils/webhookhandler.py", line 46, in __init__
    super(WebhookServer, self).__init__(server_address, RequestHandlerClass)
    File "/usr/lib/python3.6/socketserver.py", line 453, in __init__
    self.server_bind()
    File "/usr/lib/python3.6/http/server.py", line 136, in server_bind
    socketserver.TCPServer.server_bind(self)
    File "/usr/lib/python3.6/socketserver.py", line 467, in server_bind
    self.socket.bind(self.server_address)
    OSError: [Errno 98] Address already in use
    Exception in thread updater:
    Traceback (most recent call last):
    File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
    File "/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
    File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 156, in _thread_wrapper
    target(*args, **kwargs)
    File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 361, in _start_webhook
    self.bot)
    File "/usr/local/lib/python3.6/dist-packages/telegram/utils/webhookhandler.py", line 46, in __init__
    super(WebhookServer, self).__init__(server_address, RequestHandlerClass)
    File "/usr/lib/python3.6/socketserver.py", line 453, in __init__
    self.server_bind()
    File "/usr/lib/python3.6/http/server.py", line 136, in server_bind
    socketserver.TCPServer.server_bind(self)
    File "/usr/lib/python3.6/socketserver.py", line 467, in server_bind
    self.socket.bind(self.server_address)
    OSError: [Errno 98] Address already in use

    /usr/local/lib/python3.6/dist-packages/telegram/bot.py:2047: UserWarning: The 'webhook_url' parameter has been renamed to 'url' in accordance with the API
    warnings.warn("The 'webhook_url' parameter has been renamed to 'url' in accordance"
    2019-01-07 03:35:37,550 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - DEBUG- Starting new HTTPS connection (2): api.telegram.org
    2019-01-07 03:35:37,608 - telegram.ext.dispatcher - DEBUG - Dispatcher started
    2019-01-07 03:35:37,668 - requests.packages.urllib3.connectionpool - DEBUG - "GET /api/v1/si/fetch_headers/?challenge_type=signup&guid=68add36668da460caec21072e1d9d604 HTTP/1.1" 200 16
    2019-01-07 03:35:37,678 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
    2019-01-07 03:35:37,947 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - DEBUG- https://api.telegram.org:443 "POST /bot700816500:AAEz0TCibSFYRRuirmSpl-uk-9i_7_aAlxQ/setWebhook HTTP/1.1" 200 64
    2019-01-07 03:35:37,948 - telegram.bot - DEBUG - True
    2019-01-07 03:35:37,949 - telegram.bot - DEBUG - Exiting: set_webhook
    2019-01-07 03:35:38,055 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - DEBUG- https://api.telegram.org:443 "POST /bot700816500:AAEz0TCibSFYRRuirmSpl-uk-9i_7_aAlxQ/getChatAdministrators HTTP/1.1" 400 73
    2019-01-07 03:35:38,423 - requests.packages.urllib3.connectionpool - DEBUG - "POST /api/v1/accounts/login/ HTTP/1.1" 200 490
    2019-01-07 03:35:38,428 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
    2019-01-07 03:35:38,595 - requests.packages.urllib3.connectionpool - DEBUG - "POST /api/v1/qe/sync/ HTTP/1.1" 200 3117
    2019-01-07 03:35:38,599 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
    2019-01-07 03:35:38,611 - telegram.ext.dispatcher - CRITICAL - stopping due to exception in another thread
    2019-01-07 03:35:38,616 - telegram.ext.dispatcher - DEBUG - Dispatcher thread stopped
    2019-01-07 03:35:38,619 - telegram.ext.updater - DEBUG - dispatcher - ended
    2019-01-07 03:35:38,688 - requests.packages.urllib3.connectionpool - DEBUG - "GET /api/v1/friendships/autocomplete_user_list/ HTTP/1.1" 429 80
    Request return 429 error!
    {'message': 'Please wait a few minutes before you try again.', 'status': 'fail'}
    2019-01-07 03:35:38,707 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
    2019-01-07 03:35:39,029 - requests.packages.urllib3.connectionpool - DEBUG - "GET /api/v1/feed/timeline/ HTTP/1.1" 200 796
    2019-01-07 03:35:39,037 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
    2019-01-07 03:35:39,100 - requests.packages.urllib3.connectionpool - DEBUG - "GET /api/v1/direct_v2/inbox/ HTTP/1.1" 404 0
    Request return 404 error!
    2019-01-07 03:35:39,109 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
    2019-01-07 03:35:39,306 - requests.packages.urllib3.connectionpool - DEBUG - "GET /api/v1/news/inbox/ HTTP/1.1" 200 197
    Login success!









    share|improve this question







    New contributor




    NKGTech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      -1












      -1








      -1







      I have a python bot that is supposed to be communicating with Telegram and Instagram. All the dependencies and APIs were installed as well as SSL and Certificates. This is the error codes given. What do they mean? Please help.



       Fail to import moviepy. Need only for Video upload.
      2019-01-07 03:35:37,494 - telegram.ext.dispatcher - DEBUG - Setting singleton dispatcher as <telegram.ext.dispatcher.Dispatcher object at 0x7f7a94a72da0>
      2019-01-07 03:35:37,499 - telegram.bot - DEBUG - Entering: get_chat_administrators
      2019-01-07 03:35:37,504 - requests.packages.urllib3.connectionpool - INFO - Startingnew HTTPS connection (1): i.instagram.com
      2019-01-07 03:35:37,505 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - DEBUG- Starting new HTTPS connection (1): api.telegram.org
      2019-01-07 03:35:37,505 - root - WARNING - If 'per_message=False', 'CallbackQueryHandler' will not be tracked for every message.
      2019-01-07 03:35:37,516 - JobQueue - DEBUG - JobQueue thread started
      2019-01-07 03:35:37,521 - telegram.ext.updater - DEBUG - dispatcher - started
      2019-01-07 03:35:37,521 - telegram.ext.updater - DEBUG - updater - started
      2019-01-07 03:35:37,521 - telegram.bot - DEBUG - Entering: set_webhook
      2019-01-07 03:35:37,526 - telegram.ext.updater - DEBUG - Updater thread started (webhook)
      2019-01-07 03:35:37,531 - telegram.ext.updater - ERROR - unhandled exception in updater
      Traceback (most recent call last):
      File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 156, in _thread_wrapper
      target(*args, **kwargs)
      File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 361, in _start_webhook
      self.bot)
      File "/usr/local/lib/python3.6/dist-packages/telegram/utils/webhookhandler.py", line 46, in __init__
      super(WebhookServer, self).__init__(server_address, RequestHandlerClass)
      File "/usr/lib/python3.6/socketserver.py", line 453, in __init__
      self.server_bind()
      File "/usr/lib/python3.6/http/server.py", line 136, in server_bind
      socketserver.TCPServer.server_bind(self)
      File "/usr/lib/python3.6/socketserver.py", line 467, in server_bind
      self.socket.bind(self.server_address)
      OSError: [Errno 98] Address already in use
      Exception in thread updater:
      Traceback (most recent call last):
      File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
      self.run()
      File "/usr/lib/python3.6/threading.py", line 864, in run
      self._target(*self._args, **self._kwargs)
      File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 156, in _thread_wrapper
      target(*args, **kwargs)
      File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 361, in _start_webhook
      self.bot)
      File "/usr/local/lib/python3.6/dist-packages/telegram/utils/webhookhandler.py", line 46, in __init__
      super(WebhookServer, self).__init__(server_address, RequestHandlerClass)
      File "/usr/lib/python3.6/socketserver.py", line 453, in __init__
      self.server_bind()
      File "/usr/lib/python3.6/http/server.py", line 136, in server_bind
      socketserver.TCPServer.server_bind(self)
      File "/usr/lib/python3.6/socketserver.py", line 467, in server_bind
      self.socket.bind(self.server_address)
      OSError: [Errno 98] Address already in use

      /usr/local/lib/python3.6/dist-packages/telegram/bot.py:2047: UserWarning: The 'webhook_url' parameter has been renamed to 'url' in accordance with the API
      warnings.warn("The 'webhook_url' parameter has been renamed to 'url' in accordance"
      2019-01-07 03:35:37,550 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - DEBUG- Starting new HTTPS connection (2): api.telegram.org
      2019-01-07 03:35:37,608 - telegram.ext.dispatcher - DEBUG - Dispatcher started
      2019-01-07 03:35:37,668 - requests.packages.urllib3.connectionpool - DEBUG - "GET /api/v1/si/fetch_headers/?challenge_type=signup&guid=68add36668da460caec21072e1d9d604 HTTP/1.1" 200 16
      2019-01-07 03:35:37,678 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
      2019-01-07 03:35:37,947 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - DEBUG- https://api.telegram.org:443 "POST /bot700816500:AAEz0TCibSFYRRuirmSpl-uk-9i_7_aAlxQ/setWebhook HTTP/1.1" 200 64
      2019-01-07 03:35:37,948 - telegram.bot - DEBUG - True
      2019-01-07 03:35:37,949 - telegram.bot - DEBUG - Exiting: set_webhook
      2019-01-07 03:35:38,055 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - DEBUG- https://api.telegram.org:443 "POST /bot700816500:AAEz0TCibSFYRRuirmSpl-uk-9i_7_aAlxQ/getChatAdministrators HTTP/1.1" 400 73
      2019-01-07 03:35:38,423 - requests.packages.urllib3.connectionpool - DEBUG - "POST /api/v1/accounts/login/ HTTP/1.1" 200 490
      2019-01-07 03:35:38,428 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
      2019-01-07 03:35:38,595 - requests.packages.urllib3.connectionpool - DEBUG - "POST /api/v1/qe/sync/ HTTP/1.1" 200 3117
      2019-01-07 03:35:38,599 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
      2019-01-07 03:35:38,611 - telegram.ext.dispatcher - CRITICAL - stopping due to exception in another thread
      2019-01-07 03:35:38,616 - telegram.ext.dispatcher - DEBUG - Dispatcher thread stopped
      2019-01-07 03:35:38,619 - telegram.ext.updater - DEBUG - dispatcher - ended
      2019-01-07 03:35:38,688 - requests.packages.urllib3.connectionpool - DEBUG - "GET /api/v1/friendships/autocomplete_user_list/ HTTP/1.1" 429 80
      Request return 429 error!
      {'message': 'Please wait a few minutes before you try again.', 'status': 'fail'}
      2019-01-07 03:35:38,707 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
      2019-01-07 03:35:39,029 - requests.packages.urllib3.connectionpool - DEBUG - "GET /api/v1/feed/timeline/ HTTP/1.1" 200 796
      2019-01-07 03:35:39,037 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
      2019-01-07 03:35:39,100 - requests.packages.urllib3.connectionpool - DEBUG - "GET /api/v1/direct_v2/inbox/ HTTP/1.1" 404 0
      Request return 404 error!
      2019-01-07 03:35:39,109 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
      2019-01-07 03:35:39,306 - requests.packages.urllib3.connectionpool - DEBUG - "GET /api/v1/news/inbox/ HTTP/1.1" 200 197
      Login success!









      share|improve this question







      New contributor




      NKGTech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I have a python bot that is supposed to be communicating with Telegram and Instagram. All the dependencies and APIs were installed as well as SSL and Certificates. This is the error codes given. What do they mean? Please help.



       Fail to import moviepy. Need only for Video upload.
      2019-01-07 03:35:37,494 - telegram.ext.dispatcher - DEBUG - Setting singleton dispatcher as <telegram.ext.dispatcher.Dispatcher object at 0x7f7a94a72da0>
      2019-01-07 03:35:37,499 - telegram.bot - DEBUG - Entering: get_chat_administrators
      2019-01-07 03:35:37,504 - requests.packages.urllib3.connectionpool - INFO - Startingnew HTTPS connection (1): i.instagram.com
      2019-01-07 03:35:37,505 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - DEBUG- Starting new HTTPS connection (1): api.telegram.org
      2019-01-07 03:35:37,505 - root - WARNING - If 'per_message=False', 'CallbackQueryHandler' will not be tracked for every message.
      2019-01-07 03:35:37,516 - JobQueue - DEBUG - JobQueue thread started
      2019-01-07 03:35:37,521 - telegram.ext.updater - DEBUG - dispatcher - started
      2019-01-07 03:35:37,521 - telegram.ext.updater - DEBUG - updater - started
      2019-01-07 03:35:37,521 - telegram.bot - DEBUG - Entering: set_webhook
      2019-01-07 03:35:37,526 - telegram.ext.updater - DEBUG - Updater thread started (webhook)
      2019-01-07 03:35:37,531 - telegram.ext.updater - ERROR - unhandled exception in updater
      Traceback (most recent call last):
      File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 156, in _thread_wrapper
      target(*args, **kwargs)
      File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 361, in _start_webhook
      self.bot)
      File "/usr/local/lib/python3.6/dist-packages/telegram/utils/webhookhandler.py", line 46, in __init__
      super(WebhookServer, self).__init__(server_address, RequestHandlerClass)
      File "/usr/lib/python3.6/socketserver.py", line 453, in __init__
      self.server_bind()
      File "/usr/lib/python3.6/http/server.py", line 136, in server_bind
      socketserver.TCPServer.server_bind(self)
      File "/usr/lib/python3.6/socketserver.py", line 467, in server_bind
      self.socket.bind(self.server_address)
      OSError: [Errno 98] Address already in use
      Exception in thread updater:
      Traceback (most recent call last):
      File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
      self.run()
      File "/usr/lib/python3.6/threading.py", line 864, in run
      self._target(*self._args, **self._kwargs)
      File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 156, in _thread_wrapper
      target(*args, **kwargs)
      File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 361, in _start_webhook
      self.bot)
      File "/usr/local/lib/python3.6/dist-packages/telegram/utils/webhookhandler.py", line 46, in __init__
      super(WebhookServer, self).__init__(server_address, RequestHandlerClass)
      File "/usr/lib/python3.6/socketserver.py", line 453, in __init__
      self.server_bind()
      File "/usr/lib/python3.6/http/server.py", line 136, in server_bind
      socketserver.TCPServer.server_bind(self)
      File "/usr/lib/python3.6/socketserver.py", line 467, in server_bind
      self.socket.bind(self.server_address)
      OSError: [Errno 98] Address already in use

      /usr/local/lib/python3.6/dist-packages/telegram/bot.py:2047: UserWarning: The 'webhook_url' parameter has been renamed to 'url' in accordance with the API
      warnings.warn("The 'webhook_url' parameter has been renamed to 'url' in accordance"
      2019-01-07 03:35:37,550 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - DEBUG- Starting new HTTPS connection (2): api.telegram.org
      2019-01-07 03:35:37,608 - telegram.ext.dispatcher - DEBUG - Dispatcher started
      2019-01-07 03:35:37,668 - requests.packages.urllib3.connectionpool - DEBUG - "GET /api/v1/si/fetch_headers/?challenge_type=signup&guid=68add36668da460caec21072e1d9d604 HTTP/1.1" 200 16
      2019-01-07 03:35:37,678 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
      2019-01-07 03:35:37,947 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - DEBUG- https://api.telegram.org:443 "POST /bot700816500:AAEz0TCibSFYRRuirmSpl-uk-9i_7_aAlxQ/setWebhook HTTP/1.1" 200 64
      2019-01-07 03:35:37,948 - telegram.bot - DEBUG - True
      2019-01-07 03:35:37,949 - telegram.bot - DEBUG - Exiting: set_webhook
      2019-01-07 03:35:38,055 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - DEBUG- https://api.telegram.org:443 "POST /bot700816500:AAEz0TCibSFYRRuirmSpl-uk-9i_7_aAlxQ/getChatAdministrators HTTP/1.1" 400 73
      2019-01-07 03:35:38,423 - requests.packages.urllib3.connectionpool - DEBUG - "POST /api/v1/accounts/login/ HTTP/1.1" 200 490
      2019-01-07 03:35:38,428 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
      2019-01-07 03:35:38,595 - requests.packages.urllib3.connectionpool - DEBUG - "POST /api/v1/qe/sync/ HTTP/1.1" 200 3117
      2019-01-07 03:35:38,599 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
      2019-01-07 03:35:38,611 - telegram.ext.dispatcher - CRITICAL - stopping due to exception in another thread
      2019-01-07 03:35:38,616 - telegram.ext.dispatcher - DEBUG - Dispatcher thread stopped
      2019-01-07 03:35:38,619 - telegram.ext.updater - DEBUG - dispatcher - ended
      2019-01-07 03:35:38,688 - requests.packages.urllib3.connectionpool - DEBUG - "GET /api/v1/friendships/autocomplete_user_list/ HTTP/1.1" 429 80
      Request return 429 error!
      {'message': 'Please wait a few minutes before you try again.', 'status': 'fail'}
      2019-01-07 03:35:38,707 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
      2019-01-07 03:35:39,029 - requests.packages.urllib3.connectionpool - DEBUG - "GET /api/v1/feed/timeline/ HTTP/1.1" 200 796
      2019-01-07 03:35:39,037 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
      2019-01-07 03:35:39,100 - requests.packages.urllib3.connectionpool - DEBUG - "GET /api/v1/direct_v2/inbox/ HTTP/1.1" 404 0
      Request return 404 error!
      2019-01-07 03:35:39,109 - requests.packages.urllib3.connectionpool - INFO - Resetting dropped connection: i.instagram.com
      2019-01-07 03:35:39,306 - requests.packages.urllib3.connectionpool - DEBUG - "GET /api/v1/news/inbox/ HTTP/1.1" 200 197
      Login success!






      linux scripting python certificates python3






      share|improve this question







      New contributor




      NKGTech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      NKGTech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      NKGTech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 1 hour ago









      NKGTech

      9




      9




      New contributor




      NKGTech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      NKGTech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      NKGTech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          NKGTech is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f492924%2ferror-running-python-bot-on-linux-vm-azure%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          NKGTech is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          NKGTech is a new contributor. Be nice, and check out our Code of Conduct.













          NKGTech is a new contributor. Be nice, and check out our Code of Conduct.












          NKGTech is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f492924%2ferror-running-python-bot-on-linux-vm-azure%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Accessing regular linux commands in Huawei's Dopra Linux

          Can't connect RFCOMM socket: Host is down

          Kernel panic - not syncing: Fatal Exception in Interrupt