GithubHelp home page GithubHelp logo

Comments (7)

E3V3A avatar E3V3A commented on August 10, 2024

This happens when there are no planes in the area.

from flightradar24-client.

derhuerst avatar derhuerst commented on August 10, 2024

Can you post your example code?

from flightradar24-client.

E3V3A avatar E3V3A commented on August 10, 2024

its the same as yours, just put a bounding box where there are no planes.

from flightradar24-client.

derhuerst avatar derhuerst commented on August 10, 2024

Please give me your full code.

from flightradar24-client.

E3V3A avatar E3V3A commented on August 10, 2024

radar(85,13,84,14) ! When there are no planes, your test script fails.

from flightradar24-client.

derhuerst avatar derhuerst commented on August 10, 2024

In a way, that's intended. There's no real way to check if the client properly parses the data from the API, so the test expects one or more flights. In 49cd6e0, I've made the tests fail up front if there are no flights.

from flightradar24-client.

E3V3A avatar E3V3A commented on August 10, 2024

Yeah, I see what you mean.

Sorry I wasn't very specific. But I was hoping to fix it in the library somewhere around here and instead return something we can more easily check, rather than "crashing". Especially since JS have this funny way of treating an empty list [] as a Boolean True, while turning the number converted one into a zero! I haven't tried the full query to see what is actually returned by the Fr24 JSON upon empty set.

from flightradar24-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.