"Token Required" error when attempting to create an instant search index on a secured service
Hi there,
I'm very new to Geocortex and am trying to set up my first instant search index. The service in question is secured and requires an ArcGIS Server token to access it. I made the service connection in the site itself by referencing a proxy page, and the layers show up fine in the viewer; however, when I try to start the index scan for the service, I receive a "HTTP Error - Token Required" message. I found section entitled "Instant Search yields 404 error when indexing a token-secured map service" in the "Essential 4.6 Known Issues" posting (https://support.geocortex.com/essentialsGSCkba?sub-nav=kba&main-nav=essentials&#!/feedtype=SINGLE_ARTICLE_DETAIL&criteria=BESTANSWERS&id=kA360000000GqpGCAS) (saying I should contact Geocortex Support), but I'm running Essentials 4.9. Has anyone dealt with this issue before?
Cheers,
Nate Shaub
0
-
Hi Nate,
Can you check the scanner log, typically here -
C:\Program Files\Latitude Geographics\Geocortex Core\Data\Logs\InstantSearch.Scanner
to see if you can see the 404 error in the log file and what the request is that is causing the error?
Thanks,
Wayne Richard
Latitude Geographics Group Ltd.
Head Office: 300 – 1117 Wharf Street Victoria, BC Canada V8W 1T7
Tel: (250) 381-8130 | Fax: (250) 381-8132 | wrichard@latitudegeo.com
Developers of Geocortex web-based mapping software | www.geocortex.com
An Esri Platinum Business Partner0 -
Hi Wayne,
Not much additional detail in the log (see below) ... it's as if the index operation isn't going through the proxy page specified in the service connection but rather straight to the service without a token.
[2017-11-21 12:23:21,396][WARN ][64 ][InstantSearch.Scanner][Geocortex.Platform.Roles.InstantSearch.Scanner.ScannerRole.HandleWebException] Exception Occurred: 'Error downloading data from URL 'https://dev.tigardmaps.com/arcgis/rest/services/MapApplications/tig_demo_service/MapServer?f=pjson' for map service 'com_tigardmaps_dev:https_arcgis_rest_services_mapapplications_tig_demo_service_mapserver'.' details: WebException: Token Required
at Geocortex.Platform.Roles.InstantSearch.SecuredServices.ServiceClient.<GetJsonAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Geocortex.Platform.Roles.InstantSearch.Scanner.Scanners.ScannerBase.<DownloadData>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Geocortex.Platform.Roles.InstantSearch.Scanner.ScannerRole.<ProcessWorkItemAsync>d__32.MoveNext()
Cheers,
Nate0 -
I would recommend submitting a (http://mailto:support@latitudegeo.com?subject=Instant%20Search%20error%20with%20token%20secured%20service) support ticket, it will require some digging.
Regards,
Wayne Richard
Latitude Geographics Group Ltd.
Head Office: 300 – 1117 Wharf Street Victoria, BC Canada V8W 1T7
Tel: (250) 381-8130 | Fax: (250) 381-8132 | wrichard@latitudegeo.com
Developers of Geocortex web-based mapping software | www.geocortex.com
An Esri Platinum Business Partner0 -
Thanks Wayne! 0
Please sign in to leave a comment.
Comments
4 comments