Welcome, Guest
Username: Password: Remember me

TOPIC: Python API - TimeOut error

Python API - TimeOut error 11 months 3 weeks ago #949

  • Herson
  • Herson's Avatar
  • Offline
  • New Member
  • Posts: 4
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.
The administrator has disabled public write access.

Python API - TimeOut error 11 months 3 weeks ago #950

  • jluebbe
  • jluebbe's Avatar
  • Offline
  • Senior Member
  • Posts: 57
  • Thank you received: 20
It's better to get a timeout error and handle the exception than to have the program hanging when no timeout is set.
The administrator has disabled public write access.
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!