Jump to content
Not connected, Your IP: 18.206.194.134
piratejake

API Not Working As Expected

Recommended Posts

When I go to the Overview section of my client area, it shows that I have 1 active section which I am able to click and it will show the server I'm connected to and the public IP and all that good stuff. However, if I go to the API page and click Run, it only shows  me as a user and it says 

"connected": false

I am trying to get my API working so that I can view the server I am connected to and its ip address...

Share this post


Link to post

Did you try it with curl or something? Is the result the same?


» I am not an AirVPN team member. All opinions are my own and are not to be considered official. Only the AirVPN Staff account should be viewed as such.

» The forums is a place where you can ask questions to the community. You are not entitled to guaranteed answer times. Answer quality may vary, too. If you need professional support, please create tickets.

» If you're new, take some time to read LZ1's New User Guide to AirVPN. On questions, use the search function first. On errors, search for the error message instead.

» If you choose to create a new thread, keep in mind that we don't know your setup. Give info about it. Never forget the OpenVPN logs or, for Eddie, the support file (Logs > lifebelt icon).

» The community kindly asks you to not set up Tor exit relays when connected to AirVPN. Their IP addresses are subject to restrictions and these are relayed to all users of the affected servers.

 

» Furthermore, I propose that your paranoia is to be destroyed. If you overdo privacy, chances are you will be unique amond the mass again.

Share this post


Link to post

Hi,
curl is the only option here on the website... I am testing the API from https://airvpn.org/apisettings/

I have also tested it in a php script that is NOT using curl, and it still returns the same results, which don't include my active connections or their ips, which is what I am expecting them to return.

Share this post


Link to post

Unfortunately, I cannot reproduce your findings:

$ curl -sfLH "API-KEY:myapikeyisasecret" "https://airvpn.org/api/userinfo/"|jq .user.connected
true

.

» I am not an AirVPN team member. All opinions are my own and are not to be considered official. Only the AirVPN Staff account should be viewed as such.

» The forums is a place where you can ask questions to the community. You are not entitled to guaranteed answer times. Answer quality may vary, too. If you need professional support, please create tickets.

» If you're new, take some time to read LZ1's New User Guide to AirVPN. On questions, use the search function first. On errors, search for the error message instead.

» If you choose to create a new thread, keep in mind that we don't know your setup. Give info about it. Never forget the OpenVPN logs or, for Eddie, the support file (Logs > lifebelt icon).

» The community kindly asks you to not set up Tor exit relays when connected to AirVPN. Their IP addresses are subject to restrictions and these are relayed to all users of the affected servers.

 

» Furthermore, I propose that your paranoia is to be destroyed. If you overdo privacy, chances are you will be unique amond the mass again.

Share this post


Link to post

Works fine for me too.
Maybe try to generate a new API key.
I once had a weird behavior on the API not seeing one of my connections but it was while having come handshake errors and didn't last long.

The other thing that you can try is to create a new "device" in the Devices section under the client area and try connecting with this new Key.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...