Flight Plan API issue

Hi Cam. I have a question about live api v2. When I try to get a flight plan of a flight, it sometimes gives me a 400 error. Why is this happening?

No errors on my end. You’ll get a 400 if the flight is a previous flight though, flight plans are only saved for the duration of the flight.


No. Firstly, I get all the flights through Liveapi, and then I try to get flight plan of some flights in less than ten seconds, about 30% of the requests will return 400 error.

I just want to know what is the meaning of 400 error. I guess that maybe these flights have just joined the game, and they did not set their flight plan.

Do you have some example flight IDs that I can check?


Of course :)


1 Like


It doesn’t look like those flights have FPLs filed, which is why you are getting a 400 (it should contain error code 6 in the body in that case).

I am looking into an issue where flight plans may not show if a user has a connection issue mid-flight which might be related to this.


Thanks a lot! May I ask when can this problem be fixed?

I’ll include some improvements in 21.1 (needs an app update)


OK. It looks like I should catch and handle the 400 error.

Yep, always handle the errors where possible, the error codes normally give some information about what is going on to help you handle it properly (server error vs missing flight plan). Hope this helps!