Jump to content
PLEASE READ - Webmaster Support Forum
This forum will be retired in the near future. Please direct all queries to our dedicated GitHub support page https://github.com/vatsimnetwork/developer-info/discussions 
Here you can find documentation on our services and we are continuing to migrate pertinent information into the Wiki pages https://github.com/vatsimnetwork/developer-info/wiki

Atcsession returns 500 error when online


Wenlue Zhang
 Share

Recommended Posts

I have just tested the API endpoint /ratings/{id}/atcsessions/. I found that it is working correctly when a user is not currently on any ATC position. Otherwise, the API will return a server error. So I guess it may not handle an incomplete session well. Is it possible to use an object with some null properties to represent the user is currently still in a session?

Error.thumb.png.9aec57fabf6aae04a6b9467db173242b.png

 

Wenlue Zhang | Contact me

Senior Controller (C3)
P.R.China Division Webmaster (VATPRC8) 

spacer.png

Link to comment
Share on other sites

I'm also having this issue. Whenever the return will include the user's current connection, the API returns error 500. The main time I encounter this problem is when I attempt to pull all of a user's stats in one go.

A workaround is to specifically request a position which the user is not currently connected to, which works fine. However, there is no way to see what someone is currently connected as (except through the status API, which does not sort/filter by CID).

Link to comment
Share on other sites

 Share

×
×
  • Create New...