-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[Bug]: weather_status widget unable to retrieve osm location data due to invalid API endpoint #40540
Comments
Same on Nextcloud 25.0.9-0 (latest official App on Univention Corporate Server) |
I've now polished my original quick fix for this issue, the updated temporary fix file is located at: |
Hi @ds4a - I can't reproduce this behavior in NC26 (with the same weather_status version as you) nor in NC27. The way we build the URL and pass the parameters already passes the server/apps/weather_status/lib/Service/WeatherStatusService.php Lines 312 to 317 in e16ce82
server/apps/weather_status/lib/Service/WeatherStatusService.php Lines 411 to 413 in e16ce82
That URL in your logs looks really strange as it is missing the Can you re-test with an unmodified version of the |
This comment was marked as resolved.
This comment was marked as resolved.
Hi @joshtrichards, I've retried with the unmodified version that was linked to and it's does work, although something doesn't quite seem right with whats displayed in the dashboard. The rton was probably a typo for Horton, Devizes, UK. At the time I'd tried lots of locations and all produced the same error, here's some others from my logs at the time: GET https://nominatim.openstreetmap.org/search/Bristol?format=json&addressdetails=1&extratags=1&namedetails=1&limit=1` resulted in a GET https://nominatim.openstreetmap.org/search/Devizes?format=json&addressdetails=1&extratags=1&namedetails=1&limit=1` resulted in a GET https://nominatim.openstreetmap.org/search/Easton,%20Bristol,%20United%20Kingdom?format=json&addressdetails=1&extratags=1&namedetails=1&limit=1` resulted in a All with the endpoint response of: response:\n\n\n<title>File Not Found</title>\n\n\n File not found: API no longer accessible via this URL</h1 (truncated...)\nHowever all appears to work as expected in my current NC 28.0.1 |
Hi @joshtrichards, I pulled up a backup of the WeatherStatusService.php which I had as part of my installation, which contained some subtle differences to the file you referenced: My installed version (note the trailing slash after search/) and the . $address:
|
Does @ramon-kramer have their original file? Does it contain the same code between lines 305 and 325? |
I think you just caught this just before the fix was released: #38665 :-) |
Bug description
When entering an address in the weather_status dashboard widget an error is generated and the requested weather info is not changed, the widget weather location is not updated.
Dashboard displays "There was an error setting the location address."
Steps to reproduce
Expected behavior
New weather location is displayed and set in widget, ability to save as favourite if desired.
Installation method
Community Manual installation with Archive
Nextcloud Server version
26
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
The api endpoint is incorrect for the openstreet map API.
I have made amendments to the /apps/weather_status/lib/Service/WeatherStatusService.php file to correct the behaviour.
WeatherStatusService.txt
The text was updated successfully, but these errors were encountered: