×

Notice

The forum is in read only mode.

Python API - TimeOut error

5 years 2 weeks ago #949 by Herson
Python API - TimeOut error was created by Herson
When calling the following Python API the program occasionally crashes with a TimeOut error "HTTPSConnectionPool(host='Opensky-network',port=443):Read timed out. (read timeout=15.0)" . The program file is adapters.py line 529.

states = vOpenSkyClass.get_states(time_secs=vTimeCounter, icao24=None, serials=None, bbox=(51.332387,51.36172,-0.695199,-0.649092)

What do you suggest to circumvent this error? I.e. increase the timeout limit or trap the error handling so the program continues to run?

Thanks.

Richard.
5 years 2 weeks ago #950 by jluebbe
Replied by jluebbe on topic Python API - TimeOut error
It's better to get a timeout error and handle the exception than to have the program hanging when no timeout is set.
Powered by Kunena Forum
This website uses cookies to offer you the best experience of our services. By using this website you agree to our privacy policy!