Добрый день, неудается загрузить изображение на pythonanywhere, хотя на локальной машине все окей. Пишет следующую ошибку
Traceback (most recent call last):
File "test.py", line 140, in <module>
whoSend()
File "test.py", line 126, in whoSend
userSend(event.user_id)
File "test.py", line 101, in userSend
if None != readMessage(event.text):
File "test.py", line 92, in readMessage
photo = upload.photo_messages(photos=image.raw)[0]
File "/home/Worgen/.local/lib/python2.7/site-packages/vk_api/upload.py", line 82, in photo_messages
return self.vk.method('photos.saveMessagesPhoto', response.json())
File "/home/Worgen/.local/lib/python2.7/site-packages/vk_api/vk_api.py", line 615, in method
raise error
vk_api.exceptions.ApiError: [1] Unknown error occurred
Код функции
image = session.get('http://urtt.ru/phphtml/docs/zamen.jpg', stream=True)
photo = upload.photo_messages(photos=image.raw)[0]
return None,'photo{}_{}'.format(photo['owner_id'], photo['id'])