public-transport / hafas-client

JavaScript client for HAFAS public transport APIs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VOR: Parser error: root.svcReqL.svcReqL.req.viaLocL

jonasgaiswinkler opened this issue · comments

Hi,

I get the following error when searching for a journey on the VOR endpoint:

Error: Parser error: root.svcReqL.svcReqL.req.viaLocL

{ isHafasError: true, request: '{"lang":"de","svcReqL":[{"cfg":{"polyEnc":"GPA"},"meth":"TripSearch","req":{"getPasslist":true,"maxChg":-1,"minChgTime":0,"depLocL":[{"type":"S","lid":"A=1@L=444790000@"}],"viaLocL":null,"arrLocL":[{"type":"S","lid":"A=1@L=490134900@"}],"jnyFltrL":[{"type":"PROD","mode":"INC","value":"4087"},{"type":"META","mode":"INC","meta":"notBarrierfree"}],"gisFltrL":[],"getTariff":false,"ushrp":true,"getPT":true,"getIV":false,"getPolyline":true,"outDate":"20220317","outTime":"074700","outFrwd":true}}],"client":{"type":"AND","id":"VAO"},"ext":"VAO.11","ver":"1.27","auth":{"type":"USER","aid":"and20201hf7mcf9bv3nv8g5f","user":"mobile","pw":"87a6f8ZbnBih32"}}', url: 'https://anachb.vor.at/bin/mgate.exe?mic=e93316f811ca50ac7903a7dcf2817321&mac=5ab93daad925b55489f2adb1f54cd176', statusCode: 200, code: 'PARSE', responseId: null }

Thanks,
Jonas

Thanks for reporting.

What version of hafas-client are you using?

Ah, this isn't fixed in the latest hafas-client@5.20.1. I will push a bugfix release soon.

Published as hafas-client@5.20.2.