Comments (10)
Sorry, you are right π
Now working as expected π
from flightradar24-client.
as of right now its still working for me... with [email protected]
from flightradar24-client.
Not for me with a simple local test.
Error: Forbidden
statusCode: 403
The problem is the current UserAgent
:
const headers = {
//'User-Agent': 'https://github.com/derhuerst/fetch-flightradar24-flights'
}
It could be banned.
I've replaced that piece of code with:
const headers = {
'User-Agent': makeId(5)
}
function makeId(length) {
let result = '';
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
const charactersLength = characters.length;
let counter = 0;
while (counter < length) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
counter += 1;
}
return result;
}
from flightradar24-client.
@efraespada, did you test with version 1.0.0? The user agent should be fixed already using the code here: https://github.com/derhuerst/flightradar24-client/blob/abc2a54a747cb1153ec97fe5df91541bd163ea0d/lib/random-user-agent.js (see also #29 )
from flightradar24-client.
from flightradar24-client.
My version is correct, and i have the problem
the package.json in the node_modules
{
"name": "flightradar24-client",
"description": "Fetch aircraft data from Flightradar24.",
"version": "1.0.0",
"type": "module",
"main": "index.js",
"files": [
"index.js",
"lib"
],
"keywords": [
"aviation",
"airplanes",
"flights",
"flightradar24"
],
"author": "Jannis R <[email protected]>",
"contributors": [
"@E3V3A"
],
"homepage": "https://github.com/derhuerst/flightradar24-client",
"repository": "derhuerst/flightradar24-client",
"bugs": "https://github.com/derhuerst/flightradar24-client/issues",
"license": "ISC",
"engines": {
"node": ">=18"
},
"dependencies": {
"fetch-ponyfill": "^7.1.0",
"moment-timezone": "^0.5.13",
"parse-jsonp": "^2.0.0"
},
"devDependencies": {
"eslint": "^8.44.0",
"tap-min": "^2.0.0",
"tape": "^5.6.4"
},
"scripts": {
"lint": "eslint .",
"test": "node test.js | tap-min",
"prepublishOnly": "npm run lint && npm test"
}
}
from flightradar24-client.
Probably this is obvious for everyone else, but when trying to understand what was wrong on my system, I figured out that the flightradar24-client module was installed not only in the top level node_modules
folder but as an older version in the node_modules/node-red-contrib-fr24tube/node_modules
folder. I know your the author of fr24tube, so its unlikely that this would get in your way, but still letting you know, just in case...
from flightradar24-client.
from flightradar24-client.
Just to prevent false positives here, can you all make sure you're running the latest 0.x
version (0.3.1
) or 1.x
(currently 1.0.0
)? You can check this using npm ls
(or npm ls --depth 2
, if flightradar24-client
is nested within another package's dependencies).
In addition, it might be that you're being IP-rate-limited or -blocked. To rule this out, you can try to debug this from a fresh IP (that you haven't made requests from).
from flightradar24-client.
Closing this. Please try to provide steps to reproduce the issue when it occurs again.
from flightradar24-client.
Related Issues (20)
- README -- add shebang and command to run the code HOT 4
- clarify the meaning of north, west, south, east HOT 3
- TypeError: Cannot read property 'id' of undefined HOT 7
- add hint that the altitude is in feet HOT 4
- Improvement: Process additional JSON fields HOT 6
- An in-range update of fetch-ponyfill is breaking the build π¨ HOT 2
- An in-range update of tape is breaking the build π¨ HOT 1
- INFO: Added a new use of your module HOT 1
- An in-range update of moment-timezone is breaking the build π¨ HOT 2
- An in-range update of tape is breaking the build π¨ HOT 1
- An in-range update of moment-timezone is breaking the build π¨ HOT 4
- adapt to the latest endpoint changes HOT 1
- An in-range update of moment-timezone is breaking the build π¨ HOT 1
- An in-range update of tap-min is breaking the build π¨ HOT 2
- can it be used with react-native ? HOT 2
- api calls are failing with 'forbidden' HOT 4
- Legal prosecutions π€¦π»ββοΈ
- broken due to api changes on flightradar site HOT 4
- add Typescript types declaration file (.d.ts) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flightradar24-client.