-
Notifications
You must be signed in to change notification settings - Fork 32
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
fahrplan doesn't work in Germany #263
Comments
What version of Fahrplan do you have? bahn.de was fixed in 2.0.31. If you use AppList, then check for updates. I've uploaded a new version there this morning. |
Hallo, I have version 2.0.27 on my Ubuntu Touch phone. I checked for new versions this time. In the Open Store is no version 2.0.31 avalible. |
Ah, I see. |
Duplicate of #262, but keep open until Ubuntu Touch version is released. |
I contacted Michael Zanetti and he is no longer working on Fahrplan for Ubuntu Touch. I assume this is a general problem with the patch for #232 as I am getting a 'Parse error: Request timed out'. Anyone have any positive experience with other platforms and 'bahn.de' station search? |
main change is use https. maybe this causes the problem?. not sure why this is related to #232 |
The https: timetable queries seem to work, just the station queries are not working. Looking at the the code the is an XML 'hafa' request. |
Req:
Resp:
Both in
|
Thanks! A wget direct on the phone work. For example: Looks like i will have to add some debuggers to the 'mobilebahnde' parse to see why is failing on my Ubuntu build |
I can confirm this problem, I've built the version 2.0.31 as well, and for some reason the request does not work on the phone (BQ Aquaris 4.5) with Qt 5.4.1, even if curl (in libertine) on the same phone works. |
If you try to do the POST in an QML app, there is the same problem:
` |
hm you can play with http headers like Edit: |
"Connection: Close" and the other URL show the same effect, the downgrade 1.0 I have not tried / found yet. |
My information is that the BQ's not will be move to 16.04 because of the "old" hardware. But only for information: The app "fahrplan" works without problems till 4 weeks ago. Then from one day to the next day the connecting to bahn.de was failed. Something must be changed at this time. Sorry, my technical English is not very good, so I can't understand all statements in this treads... |
yeah that's brand new info of yesterday, they cannot move to a new kernel on BQ, and systemd requires a new kernel, but they will use upstart instead, and offer 16.04 for all phones (I was positively surprised, too). The thing is, with http it always worked without problems (like with oebb.at which still works) |
maybe its SNI or another ssl related problem. On sailfish and on windows desktop test app it works just fine. (tested on windows with Qt 5.4.1) |
I suspect backend issue with bahn.de here. the following is the output of wget on debian testing: https://pastebin.com/3ZcGBtX2 |
Let me summaries what https requests orks and what do not since http can no longer be used: Station search (HAFA XML) Station Timetable (HAFA XML) Timetable (HAFA Binary) |
I've built a version 2.0.32 which I will push to the OpenStore today so people can use / test it. This uses 'https://rabdc.bahn.de/bin/mobil' for XML and 'https://reiseauskunft.bahn.de' for the Binary requests. With this combination all Fahrplan quiries for on my Ubports OTA 3 Phone. |
Because Michael Zanetti is no longer supporting Version 2.0.32 is packaged with name Once everything works I shall make a pull request with the patches. |
OK i've published it as version 2.0.33. I couldn't reuse version 2.0.32 and versions like '2.0.32_openstore' seem to require a review! |
can you provide a PR plz? and thank you for all the research getting it to work on ubuntu phone |
On question for anyone familiare with the new Ubports 'clickable' build tool. When building from the 'fahrplan2.pro' file 'CONFIG += ubuntu' needs to be specified. Anyone know if this can be specified on the clickable command line or in the json configuration? |
Hey, thank you for this new version of fahrplan2!! I've installed it just this morning from the OpenStore and it works great!! |
actually found this by chance, so I don't know the official purpose of the url. Actually I was preparing a release myself that uses curl for the bahn.de urls. This was also tested successflly by some members of the Ubports (German) telegram group: https://github.com/balcy/fahrplan |
What I'm not sure of is, if the new URLs work for other (Ubuntu) versions as well, that's why I used curl instead. |
Balcy, your curl fix looks a lot better then using the radbc.bahn.de URLs! I think the non personalised app ID is a good idea. I gave tried out pushing my 2.0.33 version with the ID 'openstore.fahrplan2' and open store accepted it. |
i'm fine with it. can you try using 2.0.33-1 or even better 2.0.32-1 as version? |
I've merge balcy/fahrplan master and managed to build this with 'clickable'.
'balcy' 'ubuntuBuildWithContainer.sh' requires a ../../click_build, so I have removed the shellscript. The QT build fails because the 'manifest.json' does not exists. This must have been created by the Ubuntu SDK using the 'deployment.pri' file. To make the build portable I'll commit a temporay 'manifest.json' which still has me a maintainer. I guess the templating should be addes to the 'fahrplan2.pro', but I haven't used Qt for years! |
I've pushed Version '2.0.32-2' to the OpenStore using the 'openstore.fahrplan2' app ID. I had already 'burned version '2.0.32-1'. The OpenStore does not allow you to update the click file even if you never published that version! Chris we should decide who should continue to maintain on OpenStore. I not too fussed. OpenStore has picked you up as the author. Not sure where it got the info since I still had me in the 'mainfest.json'. Too many metafiles! |
sorry was in train the most part of the day . ) Glad my solution was helpful, and that you took care of the merging... I'm fine with being maintainer as well. |
@dayrover I've thought about it : You have been the first who has contacted M. Zanetti and offered to be a maintainer, and also have put work into it, so if you don't mind let's stick with your already uploaded package. |
for the clickable topic (provide qmake params) B. Douglass has said it would be a good feature to have clickable.json support that, but right now he recommends to use a custom template for that. |
I think the manifest.json was a hen/egg problem: It is created by qmake, but only if CONFIG+=ubuntu is set by clickable. |
ok got it running with docker, I have made a clickable.json file the adaptions are in master of http://github.com/balcy/fahrplan |
I Balcy. Thanks for the build fixes. |
Thank you guys for your efforts, i will close this issue now. |
no symbian device here : ( |
All seems to work fine (Ubuntu Touch). Is there a reason this issue is still open? |
The app fahrplan doesn't work in Germany. No contact to the server of Deutsche Bahn. The app not suggests any cities. It's not possible to enter cities or Lacations in the app.
The text was updated successfully, but these errors were encountered: