P
P
p1ugg2022-03-14 22:39:43
Python
p1ugg, 2022-03-14 22:39:43

How to fix an error when deploying a bot to pythonanywhere?

The thing is, I want to deploy a bot in VK on pythonanywhere, when launched in the console on the site, it gives the error
vk_api.exceptions.ApiError: [5] User authorization failed: access_token was given to another ip address.
Changed the token, nothing changed. When running on my PC, everything works fine.
I import the token from the config, everything seems to be fine with the files622f9a51da714749853291.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
SashaN69, 2022-03-14
@SashaN69

On the free version, a white list of sites

D
defriz, 2022-03-15
@defriz

get a token with access permission from all ip.
if you get a token from vkhost go to settings and turn on "Access at any time"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question