Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection refused #64

Open
samsonpwnz opened this issue Jan 4, 2024 · 4 comments
Open

Connection refused #64

samsonpwnz opened this issue Jan 4, 2024 · 4 comments

Comments

@samsonpwnz
Copy link

Hello, I am running this on a LilyGo-T-Display-S3 and after a few minutes I get red text at bottom of screen saying "Connection refused"
Is this an issue with wi-fi connection, or maybe flightradar24 rate limiting?
If I knew how to code it would be awesome to pull data from somewhere like adsb.fi. But this code is way above my head.

@rzeldent
Copy link
Owner

rzeldent commented Jan 4, 2024

Hi Samson,

I do not know if flightradar is rate limiting. Maybe someone else reading this has the same problem?
However, could indeed also be DNS or WiFi problems.

What you can do to get more information is to let the debugging log run together with the display to see if there are errors or things time out. This might give a hint...

adsb.fi looks nice and provides the same data! Will have to take a look it that data source can be used but is certainly interesting.

@rzeldent
Copy link
Owner

rzeldent commented Jan 4, 2024

adsb.fi lacks some data that is present on FR24 like origin destination etc...

@chickey
Copy link

chickey commented May 14, 2024

I've just installed the project and getting a few of these also, no wifi issues or DNS issues present. It's not all the time as it'll just happen sometimes.

3:22:15.813 > [985822][I][main.cpp:565] display_flights(): Updating flights
13:22:15.814 > [985824][I][flight_info.cpp:18] get_flights(): Request states=http://data-cloud.flightradar24.com/zones/fcgi/feed.js?bounds=55.23,55.13,-1.59,-1.49&faa=1&satellite=1&mlat=1&flarm=1&adsb=1&gnd=1&air=1&vehicles=0&estimated=1&maxage=14400&gliders=1&stats=0
13:22:15.834 > [985839][V][HTTPClient.cpp:252] beginInternal(): url: http://data-cloud.flightradar24.com/zones/fcgi/feed.js?bounds=55.23,55.13,-1.59,-1.49&faa=1&satellite=1&mlat=1&flarm=1&adsb=1&gnd=1&air=1&vehicles=0&estimated=1&maxage=14400&gliders=1&stats=0
13:22:15.856 > [985861][D][HTTPClient.cpp:303] beginInternal(): protocol: http, host: data-cloud.flightradar24.com port: 80 url: /zones/fcgi/feed.js?bounds=55.23,55.13,-1.59,-1.49&faa=1&satellite=1&mlat=1&flarm=1&adsb=1&gnd=1&air=1&vehicles=0&estimated=1&maxage=14400&gliders=1&stats=0
13:22:15.884 > [985884][D][HTTPClient.cpp:598] sendRequest(): request type: 'GET' redirCount: 0
13:22:15.886 >
13:22:20.886 > [990897][I][WiFiClient.cpp:260] connect(): select returned due to timeout 5000 ms for fd 50
13:22:20.892 > [990898][D][HTTPClient.cpp:1163] connect(): failed connect to data-cloud.flightradar24.com:80
13:22:20.897 > [990902][W][HTTPClient.cpp:1483] returnError(): error(-1): connection refused
13:22:20.910 > [990909][D][HTTPClient.cpp:408] disconnect(): tcp is closed
13:22:20.914 >
13:22:20.914 > [990914][E][flight_info.cpp:31] get_flights(): HTTP error: -1 (|��?␟)
13:22:20.920 > [990921][E][main.cpp:569] display_flights(): Error getting flights: -1 connection refused

@rzeldent
Copy link
Owner

Hi Chickey,

This is server related. They do keep track how often you make a connection and might do some rate limiting.
Error -1 means timeout... Could be anything!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants