Web AppBuilder Proxy 500 Error with Secured HTTPS Service

1359
8
09-13-2017 09:50 AM
MeleKoneya
Regular Contributor

We have a Web AppBuilder site that we are moving to a Server which has HTTPS and will be calling the map Services from an internal ArcGIS Server that also has HTTPS enabled.

When I try to load the services in the App,   I get a 500 Internal Server Error.

I am using a proxy and have configured the proxy.config.       If I run the site locally on my machine with the proxy site as HTTP it works calling the HTTPS service, but if doesn't work when going from HTTPS to HTTPS in our production environment.

https://appServer/SFDHydrantReview/proxy/proxy.ashx?https://mapsServer/arcgis/rest/servic… 

In Chrome I see a security warning when trying to access the ArcGIS Server Map Service.    What do I need to configure to get this to work?

Thanks,

Mele

Tags (1)
0 Kudos
8 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

Mele,

   So just to confirm in your production site you have the proxy.config set to use https urls right?

0 Kudos
MeleKoneya
Regular Contributor

Robert,  yes that is correct.   Our proxy.config file has HTTPS in it.

Mele

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Mele,

   In your browsers developer tools under the network tab do you see any http calls?

0 Kudos
MeleKoneya
Regular Contributor

Robert

All of the calls are HTTPS

What's interesting is when I run the same application on my localhost that is only HTTP calling HTTPS services it works.

I wonder if  HTTPS to HTTPS communication is not configured correctly.   I can ping the proxy, but it does not pass along the user name and password to a secured service and only works with non secured services when using HTTP but not with HTTPS

Mele

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Mele,

   The url to your portal in the apps main config.json is https right?

0 Kudos
MeleKoneya
Regular Contributor

Interesting.   No it is not:

"portalUrl": "http://cos-gis.maps.arcgis.com",

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Test again after changing that url.

0 Kudos
JacksonTrappett
Occasional Contributor II

Robert - I have the same issue - followed this thread down to here, but the url to my portal DOES have https://

Here's the error from dev tools:

Proxy error

I'm not sure where to go next to get this fixed - thanks for any tips!

Edit - looking into it further, I found out that my proxy ping is failing.  Trying to troubleshoot that first, but also lost there.  I've found tons of help docs and threads that say "try proxy.ashx?ping to see if your proxy is working" but none of them say what to do if the ping fails.

Edit 2 - turns out that the password for the account used to access the arcgis server service had special characters in it that were causing the proxy to fail.  I changed the password and removed the special characters and things are now working fine.