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

Geocoding seems to be broken - May 2024 #24

Open
alasdairrae opened this issue May 5, 2024 · 1 comment
Open

Geocoding seems to be broken - May 2024 #24

alasdairrae opened this issue May 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@alasdairrae
Copy link

When I search for a place using the Geocoding option and then hit search I get no results. Previously this worked fine for me.
globe-builder-geocoding

Is the connection to the Nominatum API somehow broken?

I have heard from another user of the plugin that they are having the same issue so I am reporting this here in the hope that it could be fixed or a solution found.

Thanks.

@alasdairrae alasdairrae added the bug Something isn't working label May 5, 2024
@lehtojaa
Copy link
Contributor

lehtojaa commented May 6, 2024

I can confirm the bug, and after a quick glance, it seems to be related to an outdated form of the url the plugin uses in the geocoding query. See, for example: link

Here is the error message for my case:

--- Logging error ---
Traceback (most recent call last):
  File "C:\OSGeo4W\apps\Python312\Lib\logging\__init__.py", line 1163, in emit
    stream.write(msg + self.terminator)
    ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'write'
Call stack:
  File "C:\Users/Jaakko/AppData/Roaming/QGIS/QGIS3\profiles\globe_builder_dev/python/plugins\GlobeBuilder\core\utils\geocoder.py", line 80, in on_search_response
    LOGGER.warning(str(error))
Message: '203'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "C:\OSGeo4W\apps\Python312\Lib\logging\__init__.py", line 1163, in emit
    stream.write(msg + self.terminator)
    ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'write'
Call stack:
  File "C:\Users/Jaakko/AppData/Roaming/QGIS/QGIS3\profiles\globe_builder_dev/python/plugins\GlobeBuilder\core\utils\geocoder.py", line 81, in on_search_response
    LOGGER.warning(search_result.errorString())
Message: 'Error transferring https://nominatim.openstreetmap.org/search/helsinki?limit=5&format=geojson - server replied: Not Found'
Arguments: ()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants