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

SNCB: java.lang.RuntimeException: CLIENTVERSION #502

Closed
gargamel17 opened this issue Dec 14, 2022 · 7 comments
Closed

SNCB: java.lang.RuntimeException: CLIENTVERSION #502

gargamel17 opened this issue Dec 14, 2022 · 7 comments

Comments

@gargamel17
Copy link

Query

  • NetworkId: SNCB
  • From: Location{ADDRESS, 50.6966880/5.4057460, place=Crisnée, name=Rue Vincent Bonnechère BE-WAL, BE-WLG}
  • Via: null
  • To: Location{STATION, 262348, 50.6948550/5.2500870, name=WAREMME Gare [TEC], products=[HIGH_SPEED_TRAIN, REGIONAL_TRAIN, BUS]}
  • Date: Wed Dec 14 11:40:09 GMT+01:00 2022
  • Departure: true
  • Products: [HIGH_SPEED_TRAIN, REGIONAL_TRAIN, SUBURBAN_TRAIN, SUBWAY, TRAM, BUS, FERRY, CABLECAR, ON_DEMAND]
  • Optimize for: LEAST_DURATION
  • Walk Speed: NORMAL

Error

java.lang.RuntimeException: CLIENTVERSION 
de.schildbach.pte.AbstractHafasClientInterfaceProvider.jsonLocMatch(AbstractHafasClientInterfaceProvider.java:475)
de.schildbach.pte.AbstractHafasClientInterfaceProvider.jsonTripSearchIdentify(AbstractHafasClientInterfaceProvider.java:523)
de.schildbach.pte.AbstractHafasClientInterfaceProvider.jsonTripSearch(AbstractHafasClientInterfaceProvider.java:544)

Additional information

[Please modify this part]

@Muspah
Copy link

Muspah commented Dec 14, 2022

SNCB deprecated their HAFAS endpoint and switched to an Azure-hosted HAFAS OpenAPI endpoint with custom arrival/departure boards.

@schildbach
Copy link
Owner

What's "HAFAS OpenAPI"? Do you have some link?

@Muspah
Copy link

Muspah commented Dec 14, 2022

There's not much public documentation, especially not with the more recent version that SNCB runs.

The only public implementation for SNCB that I'm aware of is https://github.com/irail/irail

I'm mainly working on creating NeTEx/SIRI, I don't know all the implementation details around the API endpoints.

@Muspah
Copy link

Muspah commented Dec 14, 2022

An older version of the API spec can be found in: https://projects.shift2rail.org/download.aspx?id=4f1ad68b-0e62-4183-98ae-7232a5c519bd

SNCB only offers JSON endpoints and only specific endpoints are available. TrainSearch is missing for example, looking up a specific journey requires multiple calls and/or caching JourneyRef's.

@schildbach
Copy link
Owner

Just for reference, the highest version the endpoint knows about is 1.51 – yields CLIENTVERSION. Any higher version yields VERSION Invalid version.

@schildbach
Copy link
Owner

derhuerst added a commit to public-transport/hafas-client that referenced this issue Dec 7, 2023
@schildbach
Copy link
Owner

I decided to remove SncbProvider, as there so no chance it will ever work again.

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

No branches or pull requests

3 participants