I’m developing a Ruby on Rails app. I have set some Flight alerts to come from FlightAware. My app receives the json being sent just fine. But one of the parameters causes my app not to reply correctly.
For some reason when “format”:“html” is included, I get a 406 Error, but if I remove only that one parameter, its back to 200 OK. What is that parameter and is there a way I can either change it, or remove it from what FlightAware is sending me? Here is the json I receive from you:
{"long_desc":"American Airlines / American Eagle #2811 (E135) departed Dallas/Fort Worth Intl (KDFW) at 03:46PM CDT enroute to KACT (Waco Rgnl) for an estimated arrival at 04:00PM CDT",**"format":"html"**,"action":"incoming_notification","summary":"EGF2811 has departed KDFW for KACT","controller":"flights","short_desc":"EGF2811 (E135) departed KDFW @ 03:46PM CDT for KACT ETA 04:00PM CDT","eventcode":"departure","flight":{"route":"NELYN3 ACT","filed_altitude":140,"filed_departuretime":1372365900,"actualdeparturetime":1372365960,"destination":"KACT","actualarrivaltime":0,"actual_blockin_time":0,"ident":"EGF2811","origin":"KDFW","faFlightID":"EGF2811-1372138171-airline-0226","filed_time":1372365679,"actual_blockout_time":1372365600,"filed_arrivaltime":1372367700,"aircrafttype":"E135","filed_blockin_time":1372368000,"filed_ete":"00:30:00","reg":"N803AE","filed_airspeed_kts":392,"estimated_blockin_time":1372367400,"filed_blockout_time":1372365900,"estimatedarrivaltime":1372366800,"estimated_blockout_time":0},"alert_id":4781271}
Thanks, i’m happy to answer anything to clarify if I need to.
-Anthony