Unable to access AircraftList.json

Discussions about the preview versions of Virtual Radar Server.
Forum rules
Please bear in mind if you do install a preview version that it is unfinished code, there may be bugs, bits missing, things that don't work etc.

Posts in this forum will not show up in forum search results. Old threads will be pruned occasionally.
Post Reply
WeKnowMC
Posts: 36
Joined: Fri Feb 19, 2016 11:58 pm

Unable to access AircraftList.json

Post by WeKnowMC » Mon Jan 22, 2018 7:11 pm

I have just installed the 16th Jan 2018 mono preview version. I use a PHP script to log the the tracks of aircraft by downloading the AircraftList.json at regular intervals. I noticed the script had stopped working after the update, then later investigated that it wasn't receiving the JSON file. I then found out that I am unable to access the AircraftList.json directly via a browser, however the desktop and mobile pages seem to be able to receive it without problems.

I get this when I attempt to view the AircraftList.json via a browser:

Code: Select all

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
  <Message>
    The requested resource does not support http method 'GET'.
  </Message>
</Error>
Does anyone have any ideas?

agw
Posts: 2130
Joined: Fri Feb 17, 2012 3:20 am

Re: Unable to access AircraftList.json

Post by agw » Tue Jan 23, 2018 12:11 am

What's the full URL that you're using to fetch the aircraft list?

WeKnowMC
Posts: 36
Joined: Fri Feb 19, 2016 11:58 pm

Re: Unable to access AircraftList.json

Post by WeKnowMC » Tue Jan 23, 2018 8:23 am

The script runs on the same server as VRS and it tries to fetch the following URL: http://localhost:8080/VirtualRadar/Airc ... shTrails=1

However if I try to view it in my browser (using the servers IP address) I get the same thing using URLs such as:
http://<SERVER IP>:8080/VirtualRadar/AircraftList.json?trFmt=fa&refreshTrails=1
http://<SERVER IP>:8080/VirtualRadar/AircraftList.json

agw
Posts: 2130
Joined: Fri Feb 17, 2012 3:20 am

Re: Unable to access AircraftList.json

Post by agw » Thu Jan 25, 2018 9:48 pm

Ah right - yes, I only implemented the POST version of the call (http://www.virtualradarserver.co.uk/Doc ... tList.aspx) when I ported it to the new server. The old GET method had been left in for the old site, which has been retired for version 3.

However, that said, the documentation says that the POST method only came in with 2.2. It feels a bit harsh to get rid of the GET method just yet. I'll look into implementing it but it might not make it into the next preview.

Post Reply