-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error with oebb profile #318
Comments
Currently, I can't reproduce this problem when fetching departures from Can you provide the request(s) that caused this error, as well as your |
newest version of hafas-client and the departure request, i've not tryed others yet after i struggled a few hours with it |
With which stop/station ID? |
It's not only about this 2 dep. I get the error all the time, i don't know if i'm dump and do something wrong, but for me nothing is working with the departure call. Maybe you provide a simple example what is working for you? Maybe simply the code how you get all dep. of Vienna mainstation, that would be great. |
./tools/debug-cli/cli.js oebb departures 8100013 | jq {
"departures": [
{
"tripId": "2|#VN#1#ST#1721035249#PI#0#ZI#193643#TA#2#DA#150724#1S#8103000#1T#1755#LS#8100002#LT#2049#PU#81#RT#1#CA#RJ#ZE#744#ZB#RJ 744 #PC#0#FR#8103000#FT#1755#TO#8100002#TT#2049#",
"stop": {
"type": "stop",
"id": "8100013",
"name": "Linz/Donau Hbf",
"location": {
"type": "location",
"id": "8100013",
"latitude": 48.290151,
"longitude": 14.291815
},
"products": {
// …
}
},
"when": "2024-07-15T19:32:00+02:00",
"plannedWhen": "2024-07-15T19:30:00+02:00",
"delay": 120,
"platform": "6A-F",
"plannedPlatform": "6A-F",
"prognosisType": "prognosed",
"direction": "Salzburg Hbf",
"provenance": null,
"line": {
"type": "line",
"id": "rj-744",
"fahrtNr": "744",
"name": "RJ 744",
"public": true,
"adminCode": "81____",
"productName": "RJ",
"mode": "train",
"product": "nationalExpress",
"operator": {
"type": "operator",
"id": "nahreisezug",
"name": "Nahreisezug"
}
},
"remarks": [
// …
],
"origin": null,
"destination": {
"type": "stop",
"id": "8100002",
"name": "Salzburg Hbf",
"location": {
"type": "location",
"id": "8100002",
"latitude": 47.812824,
"longitude": 13.045559
},
"products": {
"nationalExpress": true,
"national": true,
"interregional": true,
"regional": true,
"suburban": true,
"bus": false,
"ferry": false,
"subway": false,
"tram": false,
"onCall": false
}
},
"currentTripPosition": {
"type": "location",
"latitude": 48.28651,
"longitude": 14.28875
}
},
// …
],
"realtimeDataUpdatedAt": 1721064710
} |
Just like with #233, this error seems to be not reproducible reliably. |
JS would be great |
Vienna mainstation with 8103000 |
Still can't reproduce the problem. |
hafas-client with db-profile has the same stationIDs like oebb, right? |
The station IDs are dictated by the HAFAS instance/endpoint. DB and ÖBB run different instances, but they might use the same IDs for some (many?) stations. |
i'm gonna try again in 3 hours, maybe i am lucky and get it work |
i got it to work, thank you very much |
Please provide details on what you changed and how your determined if it works. Maybe we can resolve this for everyone who has this problem. And if we can't, we can try to further deduce under which circumstances the problem appears. |
I used the same logic as for the db-profile, followed the cli and after a bit of trial and error it worked |
can you provide commands? |
Closing in favour of #233. Please post (new!) insights about the problem over there. |
Hi, I have been working on a project and have already worked with the db hafas client without any problems. now I wanted to query data from the öbb client as well. However, this error occurs when querying departures and arrivals:
The text was updated successfully, but these errors were encountered: