Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.
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

Wenlue Zhang
Posted
Posted

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

Lenny Colton
Posted
Posted

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

Nick Harasym
Posted
Posted

Hey folks, taking a stab at this problem. I'll update here once I've fixed it.

Nick Harasym
Senior Network Infrastructure Engineer 
## [email protected]
## www.vatsim.net
## ##
7JRF7kO.png
Link to comment
Share on other sites

Nick Harasym
Posted
Posted

Fixed up. Should work for you now.

Nick Harasym
Senior Network Infrastructure Engineer 
## [email protected]
## www.vatsim.net
## ##
7JRF7kO.png
Link to comment
Share on other sites

 Share