access_token to server API VK
-
The problem is next. ♪ ♪
There's a server (s++, libcurl). He's applying for receipt.
access_token
and gets it. But using it.access_token
API-methodesecure.checkToken
There is a mistake:"User authorization failed: access_token was given to another ip address."
User token is offline. And if I go ssh to the server and generate from the console.
access_token
, there's no error checking.What could be the difference between programme receipts
access_token
And get it out of the console, what's a mistake like this?P.S.: FB receipt
access_token
It is similar and follow-up checks are in progress.
-
Problem solved. Turns out if you send a request out of the console, for some reason the request goes through the ip4 interface. And if the same request is sent in software, it goes through the ip6 interface. "Fucked" in the building on the ip6 server and it worked.