Skip to content
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

BVG servers are returning errors with the API version used. #34

Closed
FredNandrin opened this issue Sep 4, 2024 · 4 comments
Closed

BVG servers are returning errors with the API version used. #34

FredNandrin opened this issue Sep 4, 2024 · 4 comments

Comments

@FredNandrin
Copy link

FredNandrin commented Sep 4, 2024

The issue seems to be coming from hafas-client/p/bvg/index.js :
BaseProfile is using "ver": "1.44" for querying https://bvg-apps-ext.hafas.de/bin/mgate.exe
Current API version seems to be 1.76 and BVG Website is using 1.72

Structure has probably changed a bit based on their new application rollout (https://www.bvg.de/de/abos-und-tickets/alle-apps/ticket-app/ticket-app-beta-test)

Querying BVG server with ver 1.45 returns

"svcResL": [
        {
            "id": "1|1|",
            "meth": "LocMatch",
            "err": "CGI_NO_SERVER",
            "errTxt": "CGI: server could not be reached",
            "errTxtOut": "Während der Suche ist ein interner Fehler aufgetreten"
        }

where ver 1.44 and 1.46 are working fine.
This may help fixing the data issue as BVG server seems to block this version.

@FredNandrin
Copy link
Author

Hm... Now version 1.45 is working fine and 1.46 is returning the same error...
This will probably require to move to the current version to ensure their servers are kept stable...
On hafas client, the error shown is

{
    "message": "CLIENTVERSION: HCI Core: Invalid client version",
    "isHafasError": true,
    "code": null,
    "isCausedByServer": false,
    "hafasCode": "CLIENTVERSION",
    "url": "https://bvg-apps-ext.hafas.de/bin/mgate.exe?",
    "hafasResponseId": "ju7q6hwuw46ny48x",
    "hafasMessage": "HCI Core: Invalid client version"
}

@FredNandrin
Copy link
Author

Ok... forget all I said ...
Seems that the version says it failed because the authentication is not working properly (anymore).
Updating the auth.aid in hafas-client/p/bvg/base.json file seems to fix the issue...

@FredNandrin
Copy link
Author

@FredNandrin
Copy link
Author

Nothing to be fixed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant