nbuchwitz / icingaweb2-module-map

An openstreetmap based map module for host and service state visualization with Icinga Web 2
https://icinga.com/docs/icinga2/latest/doc/13-addons/
GNU General Public License v2.0
81 stars 17 forks source link

SearchFunction not working #118

Open patrickesser opened 1 year ago

patrickesser commented 1 year ago

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 commented 8 months ago

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?