When I repeatedly call get_flights() (e.g. every 40 seconds), the function behaves inconsistently:
Sometimes it returns a full list of flights (100+ entries)
Other times it returns an empty list ([]) without any error
After a few seconds, it works again
This happens randomly and is not tied to any specific airline or parameter.
What I already checked
-Same request parameters are used every time
-No exceptions are thrown when the result is empty
-Increasing delay does not fully prevent the issue
-The issue appears even when everything is stable on my side
-Additional observation
The library often prints this warning:
failed to decode Content-Encoding='gzip'
(Not a gzipped file ...)
However, this warning also appears when data is successfully returned, so it does not seem to fully break the request.
When I repeatedly call get_flights() (e.g. every 40 seconds), the function behaves inconsistently:
Sometimes it returns a full list of flights (100+ entries)
Other times it returns an empty list ([]) without any error
After a few seconds, it works again
This happens randomly and is not tied to any specific airline or parameter.
What I already checked
-Same request parameters are used every time
-No exceptions are thrown when the result is empty
-Increasing delay does not fully prevent the issue
-The issue appears even when everything is stable on my side
-Additional observation
The library often prints this warning:
However, this warning also appears when data is successfully returned, so it does not seem to fully break the request.