@kos94ok

Перестала работать пересылка постов с фотографиями из Телеграма в ВК. Что делать?

Бот установлен на хостинг Pythonanywhere. Буквально неделю назад бот функционировал и пересылал все сообщения. Сейчас почему то он пересылает только посты без фотографии. На пост с фотографией выдает ошибку

2019-08-28 19:43:40,813 (util.py:65 WorkerThread1) ERROR - TeleBot: "ProxyError occurred, args=(MaxRetryError("HTTPSConnectionPool(host='pu6-19.vk-cdn.net', port=443): Max retries exceeded with url: /c855528/
upload.php?act=do_add&mid=203163513&aid=-14&gid=0&hash=513620edfa572f2a760699548828a46b&rhash=f6314a557cfec1a3fec20ab5afced48f&swfupload=1&api=1&wallphoto=1 (Caused by ProxyError('Cannot connect to proxy.', O
SError('Tunnel connection failed: 403 Forbidden')))"),)
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/urllib3/connectionpool.py", line 594, in urlopen
    self._prepare_proxy(conn)
  File "/usr/lib/python3.7/site-packages/urllib3/connectionpool.py", line 815, in _prepare_proxy
    conn.connect()
  File "/usr/lib/python3.7/site-packages/urllib3/connection.py", line 324, in connect
    self._tunnel()
  File "/usr/lib/python3.7/http/client.py", line 911, in _tunnel
    message.strip()))
OSError: Tunnel connection failed: 403 Forbidden

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/requests/adapters.py", line 445, in send
    timeout=timeout
  File "/usr/lib/python3.7/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3.7/site-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='pu6-19.vk-cdn.net', port=443): Max retries exceeded with url: /c855528/upload.php?act=do_add&mid=203163513&aid=-14&gid=0&hash=513620edfa572f2a760699548828a46b&rhash=f6314a557cfec1a3fec20ab5afced48f&swfupload=1&api=1&wallphoto=1 (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/kos123/.local/lib/python3.7/site-packages/telebot/util.py", line 59, in run
    task(*args, **kwargs)
  File "/home/kos123/bot.py", line 88, in messages
    photo_list = upload.photo_wall(photos)
  File "/home/kos123/.local/lib/python3.7/site-packages/vk_api/upload.py", line 199, in photo_wall
    response = self.http.post(url, files=photos_files)
  File "/usr/lib/python3.7/site-packages/requests/sessions.py", line 559, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3.7/site-packages/requests/sessions.py", line 512, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3.7/site-packages/requests/sessions.py", line 622, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3.7/site-packages/requests/adapters.py", line 507, in send
    raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPSConnectionPool(host='pu6-19.vk-cdn.net', port=443): Max retries exceeded with url: /c855528/upload.php?act=do_add&mid=203163513&aid=-14&gid=0&hash=513620edfa572f2a760699548828a46b&rhash=f6314a557cfec1a3fec20ab5afced48f&swfupload=1&api=1&wallphoto=1 (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))
"
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/urllib3/connectionpool.py", line 594, in urlopen
    self._prepare_proxy(conn)
  File "/usr/lib/python3.7/site-packages/urllib3/connectionpool.py", line 815, in _prepare_proxy
    conn.connect()
  File "/usr/lib/python3.7/site-packages/urllib3/connection.py", line 324, in connect
    self._tunnel()
  File "/usr/lib/python3.7/http/client.py", line 911, in _tunnel
    message.strip()))
OSError: Tunnel connection failed: 403 Forbidden

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/requests/adapters.py", line 445, in send
    timeout=timeout
  File "/usr/lib/python3.7/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3.7/site-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='pu6-19.vk-cdn.net', port=443): Max retries exceeded with url: /c855528/upload.php?act=do_add&mid=203163513&aid=-14&gid=0&hash=513620edfa572f2a760699548828a46b&rhash=f6314a557cfec1a3fec20ab5afced48f&swfupload=1&api=1&wallphoto=1 (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/kos123/bot.py", line 98, in <module>
    bot.polling(none_stop = True)
  File "/home/kos123/.local/lib/python3.7/site-packages/telebot/__init__.py", line 389, in polling
    self.__threaded_polling(none_stop, interval, timeout)
  File "/home/kos123/.local/lib/python3.7/site-packages/telebot/__init__.py", line 413, in __threaded_polling
    self.worker_pool.raise_exceptions()
  File "/home/kos123/.local/lib/python3.7/site-packages/telebot/util.py", line 108, in raise_exceptions
    six.reraise(self.exc_info[0], self.exc_info[1], self.exc_info[2])
  File "/usr/lib/python3.7/site-packages/six.py", line 693, in reraise
    raise value
  File "/home/kos123/.local/lib/python3.7/site-packages/telebot/util.py", line 59, in run
    task(*args, **kwargs)
  File "/home/kos123/bot.py", line 88, in messages
    photo_list = upload.photo_wall(photos)
  File "/home/kos123/.local/lib/python3.7/site-packages/vk_api/upload.py", line 199, in photo_wall
    response = self.http.post(url, files=photos_files)
  File "/usr/lib/python3.7/site-packages/requests/sessions.py", line 559, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3.7/site-packages/requests/sessions.py", line 512, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3.7/site-packages/requests/sessions.py", line 622, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3.7/site-packages/requests/adapters.py", line 507, in send
    raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPSConnectionPool(host='pu6-19.vk-cdn.net', port=443): Max retries exceeded with url: /c855528/upload.php?act=do_add&mid=203163513&aid=-14&gid=0&hash=513620edfa572f2a760699548828a46b&rhash=f6314a557cfec1a3fec20ab5afced48f&swfupload=1&api=1&wallphoto=1 (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))
>>>
  • Вопрос задан
  • 530 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы