smurfy / fahrplan

QT Application for Public transportation
GNU General Public License v2.0
58 stars 32 forks source link

ÖBB Backend broken? #283

Open luchmhor opened 2 years ago

luchmhor commented 2 years ago

I tried to switch from the German DB backend to the Austrian Backend (ÖBB) because Austrian Busses are not listed in the German backend. But the search for stations gives no results. I checked the URL in the backend and it seems to be fine: http://fahrplan.oebb.at/bin/query.exe

Can anyone verify?

soulsource commented 2 years ago

I can confirm that issue. Log output is:

[D] unknown:0 - Set parser: 1
[W] unknown:0 - Bad data in response (can not find gzip magic number)
[D] expression for onParserErrorOccured:211 - Got error
[D] expression for onParserErrorOccured:212 - Mit der Datenquelle ist ein Fehler aufgetreten
[D] expression for onParserErrorOccured:109 - Got error
[D] expression for onParserErrorOccured:110 - Mit der Datenquelle ist ein Fehler aufgetreten
soulsource commented 2 years ago

Actually the URL has changed.

HTTP/1.1 302 Found : Moved Temporarily
Location: https://fahrplan.oebb.at/bin/query.exe

The key point is https. I'll make a pull request.

soulsource commented 2 years ago

However there might be more amiss. It worked when I tried it an hour ago, but now I get unknown connectionDetailsVersion for some connections, with a connectionDetailsVersion of 5 (while the app only accepts version 1).

While I don't know what drawbacks it has, I've now switched from HAFASBinary to HAFASXml in the same Pull Request. This seems to work around that incompatibility.