flightplan-tool / flightplan

Search for award inventory using Node.js and Headless Chrome!
Apache License 2.0
140 stars 41 forks source link

CX parser failing on economy awards #38

Closed kochiya2002 closed 5 years ago

kochiya2002 commented 5 years ago

error Unexpected error occurred while parsing! Error: Conflicting cabin status: [object Object] at module.exports.availabilityMap (C:\Users\kitko\AppData\Roaming\npm\node_modules\flightplan-tool\src\engines\cx\parser.js:138:15) at flightData.map.f (C:\Users\kitko\AppData\Roaming\npm\node_modules\flightplan-tool\src\engines\cx\parser.js:51:33) at Array.map () at module.exports.parse (C:\Users\kitko\AppData\Roaming\npm\node_modules\flightplan-tool\src\engines\cx\parser.js:47:32) at Results._parseAwards (C:\Users\kitko\AppData\Roaming\npm\node_modules\flightplan-tool\src\Results.js:247:20) at Results.get awards [as awards] (C:\Users\kitko\AppData\Roaming\npm\node_modules\flightplan-tool\src\Results.js:214:12) at main (C:\Users\kitko\AppData\Roaming\npm\node_modules\flightplan-tool\bin\cli-search.js:382:28) at processTicksAndRejections (internal/process/next_tick.js:81:5)

kochiya2002 commented 5 years ago

Below is the search information From HKG to KIX Cabin: economy from 2019-08-06 to 2019-08-11

jd20 commented 5 years ago

Thanks, I will take a look at this.

kochiya2002 commented 5 years ago

Thanks

jd20 commented 5 years ago

Fixed on 0.3.46.