Hello
I configured a flight alert rule for a flight. As per documentation, flightxml should be submiting a valid json to the end point. However I received the below payload as alert. This seems to be a javascript code, and not a valid JSON format. Since the end point is Function based, the reception fails due to incorrect payload. Is there a problem in alert setup? Any help is appreciated.
{ long_desc: ‘IndiGo #6052 (A320) departed Thiruvananthapuram Int'l (TRV) at 12:59PM IST enroute to Indira Gandhi Int'l (DEL) for an estimated arrival at 03:54PM IST\n\nDestination (Indira Gandhi Int'l / DEL): Terminal 1D’,
short_desc: ‘IGO6052 (A320) departed TRV @ 12:59PM IST for DEL ETA 03:54PM IST’,
summary: ‘IGO6052 has departed TRV for DEL’,
eventcode: ‘departure’,
alert_id: 32855315,
flight:
{ ident: ‘IGO6052’,
aircrafttype: ‘A320’,
origin: ‘VOTV’,
destination: ‘VIDP’,
filed_ete: ‘02:55:00’,
route: ‘’,
faFlightID: ‘IGO6052-1577079919-airline-0562’,
reg: ‘VTIHX’,
filed_altitude: 0,
filed_airspeed_kts: 414,
filed_time: 1577255784,
filed_departuretime: 1577259300,
estimatedarrivaltime: 1577269453,
actualarrivaltime: 0,
actualdeparturetime: 1577258953,
estimated_blockin_time: 1577269920,
filed_blockin_time: 1577270400,
actual_blockin_time: 0,
estimated_blockout_time: 1577258220,
filed_blockout_time: 1577258700,
actual_blockout_time: 1577258220,
filed_arrivaltime: 1577269800 } }
Thanks in advance