Do we get charged when no data is returned?


#1

Hi everyone!

Quick question…

Do we get charged when no data is returned? E.G. an incorrect flight number is looked up

Thank you all kindly

Dave


#2

Yes; the service is charged by the query not the result.


#3

Hi Everyone,

Quick question on the above…

If i look up a flight using it’s flight ID (so i already know it is a valid flight as i have received this by looking it up using the flight number) and I receive the following response…



<?xml version="1.0"  encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><SOAP-ENV:Fault><SOAP-ENV:faultcode>CLIENT</SOAP-ENV:faultcode><SOAP-ENV:faultstring>QUIET NOTFOUND: Failed to load flight</SOAP-ENV:faultstring><SOAP-ENV:detail><e:errorInfo xmlns:e="urn:TclErrorInfo"><errorCode>NONE</errorCode></e:errorInfo></SOAP-ENV:detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>


…do we get charged for this? It looks to me that it is an error at your end (it is a perfectly valid flightID of CFE8754-1355812022-airline-0202) which as I said above has been returned by looking up the flight number. As the error states ‘Failed to load flight’ that indicates (to me anyway) that the flight exists and failed to load at your end.

Any input on this would be greatly appreciated.

Thanks :slight_smile:

Andy


#4

As Mark stated, you are charged regardless of the outcome. Part of the reasoning is to discourage wasteful abuse of the service (some users make queries for every flight number between 1 and 1000 for a specific airline rather than doing a proper query using “Search” or another method, or needlessly poll a tail number at a high rate until it appears in our system).

The error “NOTFOUND: Failed to load flight” is the generic exception that is produced when no matching flight was found, and is not acknowledging existence at all. In any case, I cannot reproduce any problem requesting that specific flight id via SOAP or JSON. Here’s the output for JSON:

flightxml.flightaware.com/json/F … rline-0202



{"FlightInfoExResult":{"next_offset":-1,"flights":{"faFlightID":"CFE8754-1355812022-airline-0202","ident":"CFE8754","aircrafttype":"E190","filed_ete":"02:22:00","filed_time":1356027406,"filed_departuretime":1356018600,"filed_airspeed_kts":340,"filed_airspeed_mach":"","filed_altitude":0,"route":"","actualdeparturetime":-1,"estimatedarrivaltime":-1,"actualarrivaltime":-1,"diverted":"","origin":"LEMD","destination":"EGLC","originName":"Barajas Int'l","originCity":"Madrid","destinationName":"London City","destinationCity":"London, England"}]}}