Forums

Cannot connect to host api.vk.com:443 ssl:default

Hello I am using vkbottle and vkapi libraries but I am getting the following error - Cannot connect to host api.vk.com:443 ssl:default. I read that you need to create a topic and ask to add them to the whitelist.

vkbottle: https://vkbottle.readthedocs.io/ru/latest/ https://github.com/vkbottle/vkbottle/

vk_api: https://dev.vk.com/reference https://github.com/python273/vk_api

That site is whitelisted, so you're not being blocked by our systems. Is there more to the error message?

Has vkbottle been whitelisted? full error message - https://pastebin.com/fTcppraU

I don't see any vkbottle in the whitelist, but the error comes from api.vk.com. Is your code running fine locally (outside of PA)?

Yes, locally my code is working, something happens when downloading and first transferring packets from your server. Sorry for my English.

Ok. I have added api.vk.com to the whitelist. You may need to configure the library you're using to use the whitelist. Check the documentation for the library to find out how. The details you need are here https://help.pythonanywhere.com/pages/403ForbiddenError/