
Elisey
01.04.2019
19:00:37
<pre>Traceback (most recent call last):
File "/home/no5carry/pyTelegramRepostBot/ptrb/lib/python3.6/site-packages/requests/packages/urllib3/connectionpool.py", line 544, in urlopen
body=body, headers=headers)
File "/home/no5carry/pyTelegramRepostBot/ptrb/lib/python3.6/site-packages/requests/packages/urllib3/connectionpool.py", line 349, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1065, in _send_output
self.send(chunk)
File "/usr/lib/python3.6/http/client.py", line 986, in send
self.sock.sendall(data)
File "/usr/lib/python3.6/ssl.py", line 975, in sendall
v = self.send(byte_view[count:])
File "/usr/lib/python3.6/ssl.py", line 944, in send
return self._sslobj.write(data)
File "/usr/lib/python3.6/ssl.py", line 642, in write
return self._sslobj.write(data)
socket.timeout: The write operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/no5carry/pyTelegramRepostBot/ptrb/lib/python3.6/site-packages/requests/adapters.py", line 370, in send
timeout=timeout
File "/home/no5carry/pyTelegramRepostBot/ptrb/lib/python3.6/site-packages/requests/packages/urllib3/connectionpool.py", line 597, in urlopen
_stacktrace=sys.exc_info()[2])
File "/home/no5carry/pyTelegramRepostBot/ptrb/lib/python3.6/site-packages/requests/packages/urllib3/util/retry.py", line 245, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/home/no5carry/pyTelegramRepostBot/ptrb/lib/python3.6/site-packages/requests/packages/urllib3/packages/six.py", line 309, in reraise
raise value.with_traceback(tb)
File "/home/no5carry/pyTelegramRepostBot/ptrb/lib/python3.6/site-packages/requests/packages/urllib3/connectionpool.py", line 544, in urlopen
body=body, headers=headers)
File "/home/no5carry/pyTelegramRepostBot/ptrb/lib/python3.6/site-packages/requests/packages/urllib3/connectionpool.py", line 349, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1065, in _send_output
self.send(chunk)
File "/usr/lib/python3.6/http/client.py", line 986, in send
self.sock.sendall(data)
File "/usr/lib/python3.6/ssl.py", line 975, in sendall
v = self.send(byte_view[count:])
File "/usr/lib/python3.6/ssl.py", line 944, in send
return self._sslobj.write(data)
File "/usr/lib/python3.6/ssl.py", line 642, in write
return self._sslobj.write(data)
requests.packages.urllib3.exceptions.ProtocolError: ('Connection aborted.', timeout('The write operation timed out',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "bot.py", line 67, in <module>
time= parse_new_post(time)
File "bot.py", line 39, in parse_new_post
bot.send_video(-1001151660520,data = requests.get(root[0][6][5].attrib['url']).content)
File "/home/no5carry/pyTelegramRepostBot/ptrb/lib/python3.6/site-packages/telebot/__init__.py", line 719, in send_video
parse_mode, supports_streaming, disable_notification, timeout))
File "/home/no5carry/pyTelegramRepostBot/ptrb/lib/python3.6/site-packages/telebot/apihelper.py", line 383, in send_video
return _make_request(token, method_url, params=payload, files=files, method='post')
File "/home/no5carry/pyTelegramRepostBot/ptrb/lib/python3.6/site-packages/telebot/apihelper.py", line 54, in _make_request
timeout=(connect_timeout, read_timeout), proxies=proxy)
File "/home/no5carry/pyTelegramRepostBot/ptrb/lib/python3.6/site-packages/requests/sessions.py", line 465, in request
resp = self.send(prep, **send_kwargs)
File "/home/no5carry/pyTelegramRepostBot/ptrb/lib/python3.6/site-packages/requests/sessions.py", line 573, in send
r = adapter.send(request, **kwargs)
File "/home/no5carry/pyTelegramRepostBot/ptrb/lib/python3.6/site-packages/requests/adapters.py", line 415, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', timeout('The write operation timed out',))
</pre> скажите в чем ошибка я не понимаю, по ссылке хочу вывести видео, с картинкой норм, а видео не выводит