Global Search broken in HTML5 2.0 Viewer
Since upgrading the Essentials 4 and HTML5 2.0, the Global Search never returns results. The animation shows that it is working, but it will never return results.
Is anyone else having this issue? It works fine in our SilverLight viewer.
We have tried creating new Sites from scratch, adding new viewers, adding/removing map services.
-
Same here. Our doesn't work properly though it does return results if you put in the search in a cetrain way. Here is my post on the subject a few weeks ago: https://support.geocortex.com/SupportForums/Thread.aspx?pageid=0&mid=2&ItemID=9&thread=55218
I also submitted a support ticket but haven't heard back.
David
0 -
I did see your post on the forums. I found it weird you could get some results but not others. We aren't able to get any results and we can't geocode either. Very frustrating.
Do you know if your proxy settings are correct? That's what I am going to look into next.
-Dan
0 -
Update:
The Global Search works great with services published using certain connections (the source connection in the MXD used to publish).
Other services are creating a timeout error for every Global Search:
"[error]: 15:48:53.883: Layer Search Provider (<feature name>): Unable to load http://<domain>/arcgis/rest/services/<specific service>/query?f=json&where=<query details>&returnGeometry=true&spatialRel=esriSpatialRelIntersects&outFields=*&outSR=102100 status: 504"
I changed everything in <>.
The services causing the error load fine in the map window, you can even use the identify tool on them. You just can't use the Global Search box to query them.
At least we are starting to make a little progress...
0 -
We have a slightly different problem.
I can use the global search to get results from everything except our geocoding service. The checkbox in the geocoder properties is checked to include in global search but when I check with Fiddler, there is no request being sent to the geocoding service but there is a request for each of the other services. The same site works properly in the Silverlight viewer.
0 -
Hi Guys,
The 504 error that you see in the logs is probably coming from Fiddler. Fiddler returns a 504 if the request times out.
To check this, copy and paste the URL that the browser is sending out of Fiddler and into a regular browser window.
If you aren't seeing requests in Fiddler, check the browser console for messages indicating why no request was made.
It is likely that the viewer should be requesting the query through proxy.ashx - make sure your proxy.config allows the requests to be made.
Regards,
-Malcolm
0 -
Thanks Malcolm,
You are right - it was trying to use the html5 viewers proxy.ashx file. In the administrators guide it says you need to configure a proxy if you want to use the HTML5 viewer in a production environment. Currently I'm just testing the new version on a dev server but it appears that the proxy setup is required regardless of where you use the viewer.
Is there a way to get the HTML5 viewer to NOT use a proxy? The size of the requests should not be an issue so I'm not sure why this request would need to go through the proxy when none of the other global searchs (which actually have fairly long SQL where clauses in them) use the proxy.
Peter.
0 -
Peter, try removing the proxy URI for the viewer settings and see what happens. You're probably better off adding at least the stem of the service URL to your proxy.config file, though.
0 -
If I remove "proxy.ashx?" from the Proxy URI (Application tab of viewer settings) then the request never gets sent according to Fiddler. As soon as I put it back in the geocode request is sent through the proxy (according to Fiddler).
0 -
It seems that if the feature being queried has more than one field available to query under the 'Fields' tab in Essentials, then the 504 error presents itself. If you limit it to a single field, it works fine. Also, when using the viewer on the server that houses Essentials, the querying works fine with multiple fields enabled. It is only an issue when using the viewer on another computer. Multi-field queries also work fine in the Silverligh viewer regardless of where the viewer is used.
0
Please sign in to leave a comment.
Comments
9 comments