xoolive / traffic

A toolbox for processing and analysing air traffic data
https://traffic-viz.github.io/
MIT License
361 stars 80 forks source link

Error getting live states #413

Closed simonrp84 closed 6 months ago

simonrp84 commented 6 months ago

Hello! I've noticed that traffic/pyopensky is failing to retrieve live states from the REST API:

from traffic.data import opensky
import logging

logging.basicConfig(level=logging.DEBUG)

sv = opensky.api_states()

Gives:

DEBUG:urllib3.connectionpool:Resetting dropped connection: opensky-network.org
DEBUG:urllib3.connectionpool:https://opensky-network.org:443 "GET /api/states/all HTTP/1.1" 301 169
DEBUG:urllib3.connectionpool:Resetting dropped connection: api.opensky-network.org
DEBUG:urllib3.connectionpool:https://api.opensky-network.org:443 "GET /api/states/all HTTP/1.1" 429 17
WARNING:pyopensky.rest:Retrying in 10 seconds... {retry} more time

This continues for some time and then eventually results in an error. Weirdly, at some times of day (before 09 and after 17 UTC) it seems to work OK.

Any ideas what could be going wrong?


Please follow these steps to make it more efficient to solve your issue:

You may activate the DEBUG level with the following snippet:

import logging
logging.basicConfig(level=logging.DEBUG)
xoolive commented 6 months ago

Hi Simon, I'm afraid it's a backend issue. OpenSky is aware of this.

simonrp84 commented 6 months ago

Oh, OK. Thanks! I'll close this issue now.