Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADSBEx: JSON: List of aircrafts (ac) not found #135

Closed
TwinFan opened this issue May 5, 2019 · 1 comment

Comments

Projects
None yet
1 participant
@TwinFan
Copy link
Owner

commented May 5, 2019

Describe the bug
LiveTraffic issues errors on ADSBEx and eventually disables the channel saying there is no ac, see Log.txt below.

To Reproduce
Go to an area with no ADSBEx coverage at that time and start the channel.

Expected behavior
Accept no aircrafts without error.

Technical Info:

  • OS: any
  • X-Plane version: any
  • LiveTraffic version: v1.15

Analysis
When ADSBEx has no aircrafts to report it no longer (in the new API) returns any ac array, not even an empty one, see LTRawFD.log below.
Need to check total before going ahead and expecting an ac array.

Log.txt

LiveTraffic 1557093485.6 ERROR LTADSBEx.cpp:85/ProcessFetchedData: JSON: List of aircrafts (ac) not found
...
LiveTraffic 1557093505.6 FATAL LTChannel.cpp:168/IncErrCnt: ADS-B Exchange Online: Channel invalid and disabled after too many errors

LTRawFD.log

1557093480.434478 - 2019-05-05 21:58:00 - ADS-B Exchange Online
{"ac":null,"total":0,"ctime":1557093580679,"req_ip":"162.158.93.60"}

@TwinFan TwinFan self-assigned this May 5, 2019

TwinFan added a commit that referenced this issue May 6, 2019

ADSBEx: RapidAPI endpoint incl. new key, #138, closes #135
MsgArea shows feedback for interactive actions like key validation, CSL load independent of config for msg area
@TwinFan

This comment has been minimized.

Copy link
Owner Author

commented May 6, 2019

Don't test for total but for ac being NULL.

@TwinFan TwinFan closed this May 6, 2019

@TwinFan TwinFan added this to the v1.16 milestone May 6, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.