Enhance Search - By Spatial - Search failed !

1920
20
Jump to solution
11-30-2017 06:41 AM
DanielMunoz
Occasional Contributor

Good morning!

The enhance search widget works great on the desktop browser but I'm not able to make it work on the mobile devices, I'm using the Launchpad Theme, I was able to get a result once using the selection never using the buffer, I tried to get an error report simulating mobile devices with device mode in chrome but it didn't report any errors and performed as designed. Any ideas are most welcome, thank you!

0 Kudos
20 Replies
DanielMunoz
Occasional Contributor

Sounds Good! as usual thank very much for your time and helpful tips!

0 Kudos
DanielMunoz
Occasional Contributor

Good morning Robert!

I was able to jump the last hurdle but I'm facing the next one, I had to update .NET to 4.5, now I can see the  listing of the REST Services folder on ArcGIS Online in JSON format when I test the proxy from the webserver, from my desktop and even from a mobile device (IOS). the widget performs great on my desktop (now I know is because is inside my network). I don't know where else to check since the proxy is working, I did edited the config.json from the app to point to my geometry server and added the address of the proxy.ashx page, but the buffer search still gives me a "search failed !" message from the mobile device, any suggestions?

Thank you ,

Daniel

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Daniel,

  I keep getting errors like this from your server even on desktop (not mobile):

The requested URL was rejected. Please consult with your administrator. Your support ID is: 8587470212836132969

Did you add your ArcGIS Server url in the proxy.config? I don't see anything trying to use the proxy when monitoring network traffic on your app.

0 Kudos
DanielMunoz
Occasional Contributor

Robert,

I didn't add my ArcGIS Server url in the proxy.config I was following a set of directions that din't included that portion, I just found a post where you show the proper configuration, how do I set up the username and password for my server? below are my proxy.config and last part of the config.json

<?xml version="1.0" encoding="utf-8" ?>
<ProxyConfig allowedReferers="*"
mustMatch="true">

<serverUrls>

<serverUrl url="https://gis.orangecountygov.com"
username="username"
password="password"
matchAll="true"/>

<serverUrl url="http://services.arcgisonline.com"
matchAll="true"/>

<serverUrl url="http://traffic.arcgis.com" username="******" password="******"
matchAll="true"/>

<serverUrl url="http://route.arcgis.com" username="*****" password="******"
matchAll="true"/>


</serverUrls>

</ProxyConfig>

<!-- See https://github.com/Esri/resource-proxy for more information -->

-------------------------------------------------------------------------------------------------------

"wabVersion": "2.5",
"isTemplateApp": true,
"isWebTier": false,
"httpProxy": {
"useProxy": true,
"alwaysUseProxy": false,
"url": "https://gis.orangecountygov.com/proxy/proxy.ashx",
"rules": []
},

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Daniel,

   In your case there is no need for username and password on your server url, as for the traffic and route urls you use your AGOL username and password.

DanielMunoz
Occasional Contributor

Thank you Robert! I did the changes but I don't think it made a difference, the only way for me to check from outside the network is with my phone, do you know of an IOS app similar to chorme developer tools? Daniel

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Daniel,

  It is working great both desktop and on my iPhone. Are you using Chrome in IOS?

0 Kudos
DanielMunoz
Occasional Contributor

Wow! and yes I'll try now I probably forgot to clear the cache.

0 Kudos
DanielMunoz
Occasional Contributor

Robert,

Thank you very much for all your help and patience, the app now works everywhere!

Now I just have to re-do it all because the NYS GIS servers are NOT https:// and my site is, might as well update to 2.6 since is out and you already enhance the widget, but now i know lots of tricks thanks to you.

Daniel

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Great, Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.

0 Kudos