Skip to content

Random empty results from get_flights() during polling #109

Description

@Bkk20

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions