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

SearchFunction not working #118

Open
patrickesser opened this issue Mar 2, 2023 · 1 comment
Open

SearchFunction not working #118

patrickesser opened this issue Mar 2, 2023 · 1 comment

Comments

@patrickesser
Copy link

Hi,

I observe the problem that the search box (Top Right) in the map does not return any results.
When entering the search term, no results are returned (they should appear automatically below the search field).
Independent of whether I am looking for a host that is displayed on the map or other keywords (London or Eiffel Tower)

After I press Enter the following message appears in the browser (debug mode)

Refused to execute script from 'https://my-icingaweburl.com/map/search?q=London&limit=10&lite=0&proximity=52.5095347703273%2C13.359375000000002&jsonp=_ocd_geocoder_0&' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

Even after manually pressing enter, no results appear ("Nothing found.")

Environment

Icinga Web 2 Map version (System - About): 1.1.0
Icinga Web 2 version and modules (System - About): 2.11.3
Icinga DB Version: 1.0.2
Version used (icinga2 --version): r2.13.6-1
Operating System and version: Debian 11

@nbuchwitz
Copy link
Owner

The mime type warning is just a warning and should not affect the functionality. Nevertheless I have fixed it in current master.

I tried to reproduce your issue, but wasn't able too. Which version of the map module (release and vcs hash) are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants