Connect to AGS Server secured services
I try to connect to a GIS tier secured mapservice but when I provide token username and password I get an error:
Unable to connect to data source.
Length cannot be less than zero. Parameter name: length
When the mapservice is not secured it works fine:
URL: https://doornroosje.esri.nl/server/rest/services/Assen
pwd can be provided
-
Hello Erik,
Yes, it would be useful to be able to reproduce this issue locally. Please email me at sschweigert@latitudegeo.com with your credentials.
Thanks, Stefan
0 -
Stefan,
Unfortunately are IT department disabled public access. I ask them what is possible (adding apps.geocortex.com is not enough or not correctly configured)
0 -
No problem. Could you try opening Chrome DevTools (F12), Console tab, while adding the data source and pass along the error information that is captured?
Is there any additional security settings on AGS instance at the IIS level?
Thanks, Stefan
0 -
Stefan,
The only part I find is this:
{success: false, message: "Length cannot be less than zero. ?Parameter name: length"}
message:"Length cannot be less than zero. ?Parameter name: length"
success:false
There is no extra security involved
0 -
Stefan,
The service is now open to everyone. I send you an email with the credentials!
Erik
0 -
Hey Erik,
I was able to reproduce your issue, and it is indeed a bug. I have filed it with the dev team and it will be fixed before the 5.0 release.
Many thanks for reporting the issue.
-Paul
0 -
Is connection to secure service now working?
I have a service URL:
https://services.arcgis.com/xDL0LTy98rbQTFbo/arcgis/rest/services/SLM_Mobile_Data_PROD/FeatureServer
and I supply my token username and password values, but continually get this error:
Unable to connect to data source.
ArcGIS Server Error - 400 : Failed to acquire Service Token - Invalid URL - Invalid URL
URL and ID works perfectly fine in the browser... what could be wrong?
Thanks for any ideas!
0 -
to be clear, I get that message after running the new connection test.
0 -
Hey David,
Erik's issue is separate from your own and was fixed in the 5.0 release (v5.0.3).
Federated services do not require the Token Username or Password fields to be specified. Access is granted based on the permissions of the signed in user. Ensure your user has access to the Feature Server in Portal, then try removing to Token Username and Password values and testing the connection again.
-Paul
0 -
Thanks Paul.
That was the first way I tried. Just checked again. logged in to agol. used the exact item url for the report. no token values. same issue. as per images.
cheers
0 -
I have also tried pasting into the url a token from an endpoint view, but that was just rejected as a bad URL, mapserver or featureserver required...
0 -
Hey David,
You're not doing anything wrong, you're configuration is correct, but you've stumbled across a bug we found regarding federated services this week. We have since patched it, and the fix will be present in the upcoming Maintenance Release of Reporting 5.
-Paul
0 -
Thank you Paul.
Look forward to the fix.
Cheers!
0 -
@Paul Hunter? hey Paul I have found a similar behaviour in running a geoprocessing activity in WF5... would it be the same/related bug?
"[WF: activity error] No token available for service http://spatialtest.industry.nsw.gov.au/arcgis/rest/services/SLM/Naluma_NSW_image_2013/ImageServer/computeHistograms/execute"
works fine from service url in the browser...
Cheers
0 -
Hi David,
When running a secured geoprocessing activity, you'll need to generate the required token first in a Send Web Request, then append it to the 'Url' property.
Thanks, Stefan
0 -
Thank you Stefan,
however I have been trying that exact thing and have encountered a problem as described in this post below, to which I just now posted:
Thanks so much for your help.
Cheers
Dave
0 -
@Paul Hunter? Gday Paul,
regarding
"a bug we found regarding federated services this week. We have since patched it, and the fix will be present in the upcoming Maintenance Release of Reporting 5."
Do you know when the Maint. Release will be coming out? (Any workaround in the meantime?)
Cheers, Dave
0 -
Hey David,
The Maintenance release rolled out last week, you can download the on-prem installer here - https://communities.geocortex.com/s/downloads
If you're using the SaaS Designer (https://apps.geocortex.com/reporting/designer) you're all set to use Federated Services.
- Paul
0
Please sign in to leave a comment.
Comments
18 comments