"Couldn't load weather data, please try later again!" with Qt 5.5.1
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Ubuntu Weather App |
Undecided
|
Unassigned | ||
| | apparmor-easyprof-ubuntu (Ubuntu) |
Undecided
|
Unassigned | ||
| | qtbase-opensource-src (Ubuntu) |
Undecided
|
Unassigned | ||
Bug Description
The weather data cannot be seemingly loaded with Qt 5.5.1.
More information about Qt 5.5 at https:/
| Andrew Hayzen (ahayzen) wrote : | #1 |
| Timo Jyrinki (timo-jyrinki) wrote : | #2 |
Hey Andrew! Weather app works just fine normally, this is a Qt change (somewhere) that's causing this. It may be Weather app would need to change the way it uses the network, or it may be a bug to be entirely fixed on Qt side. It's probably not due to provider/API being used but the Qt functions being used.
Other apps haven't so far showed networking problems, so it will be useful to know what weather app does differently and if there's something that could commonly affect other apps too.
I haven't been able to look at this much yet, but I wanted to file it so that it shows at https:/
We're trying to land Qt 5.5.1 to wily+1 (xenial, as given a name today) during November.
| Timo Jyrinki (timo-jyrinki) wrote : | #3 |
This also happens with the weather app reboot. So the networkError gets raised when WeatherApi is used.
The reboot weather app's log is informative, and it states it gets error code 0: qml: wrong response http code, got 0 / http://
| Timo Jyrinki (timo-jyrinki) wrote : | #4 |
As another addition, it's _not_ apparmor related, since it happens also with unconfined profile.
| Timo Jyrinki (timo-jyrinki) wrote : | #5 |
This affects also Shorts app.
The common thing between them is using XMLHttpRequest. The attached QML (a modified simple QML app in SDK) always returns 0 on the patched vivid overlay Qt (silo 032) or Qt 5.5.1 (silo 012), on the phone (not on desktop).
However, even though I said it wouldn't be apparmor related, I do not get the problem with this test app if running the Main.qml from the command line. I do get when running it via SDK (which installs the .click). So maybe it's confinement related after all. I do get apparmor warnings both with or without the PPA.
| Timo Jyrinki (timo-jyrinki) wrote : | #6 |
Applying my patch https:/
And true, now that I tested it again, the same applies to weather app. So my previous attempt at running weather app unconfined was not actually successful.
| Lorn Potter (lorn-potter) wrote : | #7 |
Might try using bearer plugin based on connectivity-api
| Changed in apparmor-easyprof-ubuntu (Ubuntu): | |
| status: | New → Won't Fix |
| Changed in ubuntu-weather-app: | |
| status: | New → Invalid |
| Launchpad Janitor (janitor) wrote : | #8 |
This bug was fixed in the package qtbase-
---------------
qtbase-
* Update symbols for s390x.
-- Timo Jyrinki <email address hidden> Tue, 08 Dec 2015 13:35:46 +0000
| Changed in qtbase-opensource-src (Ubuntu): | |
| status: | New → Fix Released |
| Timo Jyrinki (timo-jyrinki) wrote : | #9 |
qtbase-
* debian/
- Replace the non-DFSG-free RFC files with public domain content.
- Adjust tests to the new files.
(LP: #1522442)
* debian/copyright: mention the replacement.
* Switch to opt-in for architectures to run tests on.
-- Timo Jyrinki <email address hidden> Mon, 07 Dec 2015 14:02:11 +0000
qtbase-
* Skip largefile test on s390x too, in addition to amd64.
* Make tests to keep going till the end with -k.
-- Dimitri John Ledkov <email address hidden> Fri, 04 Dec 2015 16:54:28 +0000
qtbase-
* New upstream release. (LP: #1437206) (LP: #1450137) (LP: #1474313)
(LP: #1470700) (LP: #1504631) (LP: #1423659) (LP: #1474775) (LP: #1508945)
* Replace load_testabilit
Add-
* Drop patches in upstream:
- Correct-
* Rebase enable-tests.patch. Disable one failing QtWidgets test.
* Build depend on GStreamer 1.0 and add a configure option for it.
* Update symbols.
* Mark/unmark private symbols.
* Replace two Ubuntu patches with upstreamed patches:
- Drop disable-
Add-
- Drop qopenglframebuf
Blacklist
* debian/
- Include a network fix from Qt 5.5 branch (merged after 5.5.1)
(LP: #1470700)
* debian/
- Fix a qdoc issue (LP: #1447182)
* Remove disable_
* debian/
- Backport. Prefer QT_PLUGIN_PATH over compiled-in paths (LP: #1519927)
* debian/
- Backport. Fix a crasher on exit (LP: #1436973)
* Replace our workaround for font rendering with new backported upstream
patches:
- Add debian/
- Add debian/
- Remove debian/
(LP: #1475205)
-- Timo Jyrinki <email address hidden> Tue, 01 Dec 2015 06:16:35 +0000


This could be due to OpenWeatherMap now requiring an API key as well as TheWeatherChannel. Could you confirm which provider you are using and if you have a click from the store or if you have run from source?