FRIKIdelTO

error al iniciar webdriver bot Telegram

Mar 15th, 2020
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 13.19 KB | None | 0 0
  1. 2020-03-15 10:46:22,275 (util.py:66 WorkerThread1) ERROR - TeleBot: "timeout occurred, args=('timed out',)
  2. Traceback (most recent call last):
  3.  File "C:\Python38-32\lib\site-packages\urllib3\connectionpool.py", line 421, in _make_request
  4.    six.raise_from(e, None)
  5.  File "<string>", line 3, in raise_from
  6.  File "C:\Python38-32\lib\site-packages\urllib3\connectionpool.py", line 416, in _make_request
  7.    httplib_response = conn.getresponse()
  8.  File "C:\Python38-32\lib\http\client.py", line 1322, in getresponse
  9.    response.begin()
  10.  File "C:\Python38-32\lib\http\client.py", line 303, in begin
  11.    version, status, reason = self._read_status()
  12.  File "C:\Python38-32\lib\http\client.py", line 264, in _read_status
  13.    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  14.  File "C:\Python38-32\lib\socket.py", line 669, in readinto
  15.    return self._sock.recv_into(b)
  16. socket.timeout: timed out
  17.  
  18. During handling of the above exception, another exception occurred:
  19.  
  20. Traceback (most recent call last):
  21.  File "C:\Python38-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 76, in __init__
  22.    RemoteWebDriver.__init__(
  23.  File "C:\Python38-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
  24.    self.start_session(capabilities, browser_profile)
  25.  File "C:\Python38-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
  26.    response = self.execute(Command.NEW_SESSION, parameters)
  27.  File "C:\Python38-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 319, in execute
  28.    response = self.command_executor.execute(driver_command, params)
  29.  File "C:\Python38-32\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 374, in execute
  30.    return self._request(command_info[0], url, body=data)
  31.  File "C:\Python38-32\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 397, in _request
  32.    resp = self._conn.request(method, url, body=body, headers=headers)
  33.  File "C:\Python38-32\lib\site-packages\urllib3\request.py", line 79, in request
  34.    return self.request_encode_body(
  35.  File "C:\Python38-32\lib\site-packages\urllib3\request.py", line 171, in request_encode_body
  36.    return self.urlopen(method, url, **extra_kw)
  37.  File "C:\Python38-32\lib\site-packages\urllib3\poolmanager.py", line 330, in urlopen
  38.    response = conn.urlopen(method, u.request_uri, **kw)
  39.  File "C:\Python38-32\lib\site-packages\urllib3\connectionpool.py", line 719, in urlopen
  40.    retries = retries.increment(
  41.  File "C:\Python38-32\lib\site-packages\urllib3\util\retry.py", line 400, in increment
  42.    raise six.reraise(type(error), error, _stacktrace)
  43.  File "C:\Python38-32\lib\site-packages\urllib3\packages\six.py", line 735, in reraise
  44.    raise value
  45.  File "C:\Python38-32\lib\site-packages\urllib3\connectionpool.py", line 665, in urlopen
  46.    httplib_response = self._make_request(
  47.  File "C:\Python38-32\lib\site-packages\urllib3\connectionpool.py", line 423, in _make_request
  48.    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  49.  File "C:\Python38-32\lib\site-packages\urllib3\connectionpool.py", line 330, in _raise_timeout
  50.    raise ReadTimeoutError(
  51. urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='127.0.0.1', port=51367): Read timed out. (read timeout=<object object at 0x010C6838>)
  52.  
  53. During handling of the above exception, another exception occurred:
  54.  
  55. Traceback (most recent call last):
  56.  File "C:\Python38-32\lib\site-packages\telebot\util.py", line 60, in run
  57.    task(*args, **kwargs)
  58.  File "c:/FRIKIbot/FRIKIdelBOT.py", line 1238, in crear_post
  59.    datos_producto = procesar_BANGGOOD(message.chat.id, asin, archivo_log)
  60.  File "c:/FRIKIbot/FRIKIdelBOT.py", line 680, in procesar_BANGGOOD
  61.    html = usar_selenium(url)
  62.  File "c:/FRIKIbot/FRIKIdelBOT.py", line 748, in usar_selenium
  63.    driver = webdriver.Chrome(options=chrome_options)
  64.  File "C:\Python38-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 83, in __init__
  65.    self.quit()
  66.  File "C:\Python38-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 158, in quit
  67.    self.service.stop()
  68.  File "C:\Python38-32\lib\site-packages\selenium\webdriver\common\service.py", line 151, in stop
  69.    self.send_remote_shutdown_command()
  70.  File "C:\Python38-32\lib\site-packages\selenium\webdriver\common\service.py", line 127, in send_remote_shutdown_command
  71.    url_request.urlopen("%s/shutdown" % self.service_url)
  72.  File "C:\Python38-32\lib\urllib\request.py", line 222, in urlopen
  73.    return opener.open(url, data, timeout)
  74.  File "C:\Python38-32\lib\urllib\request.py", line 525, in open
  75.    response = self._open(req, data)
  76.  File "C:\Python38-32\lib\urllib\request.py", line 542, in _open
  77.    result = self._call_chain(self.handle_open, protocol, protocol +
  78.  File "C:\Python38-32\lib\urllib\request.py", line 502, in _call_chain
  79.    result = func(*args)
  80.  File "C:\Python38-32\lib\urllib\request.py", line 1348, in http_open
  81.    return self.do_open(http.client.HTTPConnection, req)
  82.  File "C:\Python38-32\lib\urllib\request.py", line 1323, in do_open
  83.    r = h.getresponse()
  84.  File "C:\Python38-32\lib\http\client.py", line 1322, in getresponse
  85.    response.begin()
  86.  File "C:\Python38-32\lib\http\client.py", line 303, in begin
  87.    version, status, reason = self._read_status()
  88.  File "C:\Python38-32\lib\http\client.py", line 264, in _read_status
  89.    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  90.  File "C:\Python38-32\lib\socket.py", line 669, in readinto
  91.    return self._sock.recv_into(b)
  92. socket.timeout: timed out
  93. "
  94.  
  95.  
  96. Traceback (most recent call last):
  97.   File "C:\Python38-32\lib\site-packages\urllib3\connectionpool.py", line 421, in _make_request
  98.     six.raise_from(e, None)
  99.   File "<string>", line 3, in raise_from
  100.   File "C:\Python38-32\lib\site-packages\urllib3\connectionpool.py", line 416, in _make_request
  101.     httplib_response = conn.getresponse()
  102. 2020-03-15 10:46:23,030 (util.py:66 PollingThread) ERROR - TeleBot: "ApiException occurred, args=('A request to the Telegram API was unsuccessful. The server returned HTTP 409 Conflict. Response body:\n[b\'{"ok":false,"error_code":409,"description":"Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"}\']',)
  103. Traceback (most recent call last):
  104.  File "C:\Python38-32\lib\site-packages\telebot\util.py", line 60, in run
  105.    task(*args, **kwargs)
  106.  File "C:\Python38-32\lib\site-packages\telebot\__init__.py", line 279, in __retrieve_updates
  107.    updates = self.get_updates(offset=(self.last_update_id + 1), timeout=timeout)
  108.  File "C:\Python38-32\lib\site-packages\telebot\__init__.py", line 249, in get_updates
  109.    json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates)
  110.  File "C:\Python38-32\lib\site-packages\telebot\apihelper.py", line 194, in get_updates
  111.    return _make_request(token, method_url, params=payload)
  112.  File "C:\Python38-32\lib\site-packages\telebot\apihelper.py", line 60, in _make_request
  113.    return _check_result(method_name, result)['result']
  114.  File "C:\Python38-32\lib\site-packages\telebot\apihelper.py", line 79, in _check_result
  115.    raise ApiException(msg, method_name, result)
  116. telebot.apihelper.ApiException: A request to the Telegram API was unsuccessful. The server returned HTTP 409 Conflict. Response body:
  117. [b'{"ok":false,"error_code":409,"description":"Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"}']
  118. "
  119.   File "C:\Python38-32\lib\http\client.py", line 1322, in getresponse
  120.     response.begin()
  121.   File "C:\Python38-32\lib\http\client.py", line 303, in begin
  122.     version, status, reason = self._read_status()
  123.   File "C:\Python38-32\lib\http\client.py", line 264, in _read_status
  124.     line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  125.   File "C:\Python38-32\lib\socket.py", line 669, in readinto
  126.     return self._sock.recv_into(b)
  127. socket.timeout: timed out
  128.  
  129. During handling of the above exception, another exception occurred:
  130.  
  131. Traceback (most recent call last):
  132.   File "C:\Python38-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 76, in __init__
  133.     RemoteWebDriver.__init__(
  134.   File "C:\Python38-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
  135.     self.start_session(capabilities, browser_profile)
  136.   File "C:\Python38-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
  137.     response = self.execute(Command.NEW_SESSION, parameters)
  138.   File "C:\Python38-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 319, in execute
  139.     response = self.command_executor.execute(driver_command, params)
  140.   File "C:\Python38-32\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 374, in execute
  141.     return self._request(command_info[0], url, body=data)
  142.   File "C:\Python38-32\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 397, in _request
  143.     resp = self._conn.request(method, url, body=body, headers=headers)
  144.   File "C:\Python38-32\lib\site-packages\urllib3\request.py", line 79, in request
  145.     return self.request_encode_body(
  146.   File "C:\Python38-32\lib\site-packages\urllib3\request.py", line 171, in request_encode_body
  147.     return self.urlopen(method, url, **extra_kw)
  148.   File "C:\Python38-32\lib\site-packages\urllib3\poolmanager.py", line 330, in urlopen
  149.     response = conn.urlopen(method, u.request_uri, **kw)
  150.   File "C:\Python38-32\lib\site-packages\urllib3\connectionpool.py", line 719, in urlopen
  151.     retries = retries.increment(
  152.   File "C:\Python38-32\lib\site-packages\urllib3\util\retry.py", line 400, in increment
  153.     raise six.reraise(type(error), error, _stacktrace)
  154.   File "C:\Python38-32\lib\site-packages\urllib3\packages\six.py", line 735, in reraise
  155.     raise value
  156.   File "C:\Python38-32\lib\site-packages\urllib3\connectionpool.py", line 665, in urlopen
  157.     httplib_response = self._make_request(
  158.   File "C:\Python38-32\lib\site-packages\urllib3\connectionpool.py", line 423, in _make_request
  159.     self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  160.   File "C:\Python38-32\lib\site-packages\urllib3\connectionpool.py", line 330, in _raise_timeout
  161.     raise ReadTimeoutError(
  162. urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='127.0.0.1', port=51367): Read timed out. (read timeout=<object object at 0x010C6838>)
  163.  
  164. During handling of the above exception, another exception occurred:
  165.  
  166. Traceback (most recent call last):
  167.   File "c:/FRIKIbot/FRIKIdelBOT.py", line 1571, in <module>
  168.     bot.polling(timeout=600)
  169.   File "C:\Python38-32\lib\site-packages\telebot\__init__.py", line 392, in polling
  170.     self.__threaded_polling(none_stop, interval, timeout)
  171.   File "C:\Python38-32\lib\site-packages\telebot\__init__.py", line 416, in __threaded_polling
  172.     self.worker_pool.raise_exceptions()
  173.   File "C:\Python38-32\lib\site-packages\telebot\util.py", line 109, in raise_exceptions
  174.     six.reraise(self.exc_info[0], self.exc_info[1], self.exc_info[2])
  175.   File "C:\Users\FRIKIdelTO\AppData\Roaming\Python\Python38\site-packages\six.py", line 702, in reraise
  176.     raise value.with_traceback(tb)
  177.   File "C:\Python38-32\lib\site-packages\telebot\util.py", line 60, in run
  178.     task(*args, **kwargs)
  179.   File "c:/FRIKIbot/FRIKIdelBOT.py", line 1238, in crear_post
  180.     datos_producto = procesar_BANGGOOD(message.chat.id, asin, archivo_log)
  181.   File "c:/FRIKIbot/FRIKIdelBOT.py", line 680, in procesar_BANGGOOD
  182.     html = usar_selenium(url)
  183.   File "c:/FRIKIbot/FRIKIdelBOT.py", line 748, in usar_selenium
  184.     driver = webdriver.Chrome(options=chrome_options)
  185.   File "C:\Python38-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 83, in __init__
  186.     self.quit()
  187.   File "C:\Python38-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 158, in quit
  188.     self.service.stop()
  189.   File "C:\Python38-32\lib\site-packages\selenium\webdriver\common\service.py", line 151, in stop
  190.     self.send_remote_shutdown_command()
  191.   File "C:\Python38-32\lib\site-packages\selenium\webdriver\common\service.py", line 127, in send_remote_shutdown_command
  192.     url_request.urlopen("%s/shutdown" % self.service_url)
  193.   File "C:\Python38-32\lib\urllib\request.py", line 222, in urlopen
  194.     return opener.open(url, data, timeout)
  195.   File "C:\Python38-32\lib\urllib\request.py", line 525, in open
  196.     response = self._open(req, data)
  197.   File "C:\Python38-32\lib\urllib\request.py", line 542, in _open
  198.     result = self._call_chain(self.handle_open, protocol, protocol +
  199.   File "C:\Python38-32\lib\urllib\request.py", line 502, in _call_chain
  200.     result = func(*args)
  201.   File "C:\Python38-32\lib\urllib\request.py", line 1348, in http_open
  202.     return self.do_open(http.client.HTTPConnection, req)
  203.   File "C:\Python38-32\lib\urllib\request.py", line 1323, in do_open
  204.     r = h.getresponse()
  205.   File "C:\Python38-32\lib\http\client.py", line 1322, in getresponse
  206.     response.begin()
  207.   File "C:\Python38-32\lib\http\client.py", line 303, in begin
  208.     version, status, reason = self._read_status()
  209.   File "C:\Python38-32\lib\http\client.py", line 264, in _read_status
  210.     line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  211.   File "C:\Python38-32\lib\socket.py", line 669, in readinto
  212.     return self._sock.recv_into(b)
  213. socket.timeout: timed out
Advertisement
Add Comment
Please, Sign In to add comment