VertiGIS Studi Workflow - Server workflow fails to generate AGS token
Hello,
After upgrading to 5.32.0 (upgraded from 5.31.0) server workflows fails to generate Arcgis server tokens. I've tried with two different installations, and different ArgGIS servers.
Here is the error:
"traces": [
"Error: 0: Unexpected Error: System.ArgumentException: Object of type 'System.Func`1[System.Object]' cannot be converted to type 'System.Func`1[System.Net.Http.HttpClient]'.",
" at System.RuntimeType.TryChangeType(Object value, Binder binder, CultureInfo culture, Boolean needsSpecialCast)",
" at System.Reflection.MethodBase.CheckArguments(StackAllocedArguments& stackArgs, ReadOnlySpan`1 parameters, Binder binder, BindingFlags invokeAttr, CultureInfo culture, Signature sig)",
" at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)",
" at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)",
" at VertiGIS.Workflow.Runtime.Execution.ActivityContext.InjectProviderFactories(IActivityHandler handler)",
" at VertiGIS.Workflow.Runtime.Execution.ActivityContext.ResolveActivityHandler(String action)",
" at VertiGIS.Workflow.Runtime.Execution.ActivityContext.WhenAllFinished(Task[] tasks)",
" at VertiGIS.Workflow.Runtime.Execution.ActivityContext.ExecuteStart()",
" at VertiGIS.Workflow.Runtime.Execution.AmbientState.ExecuteCurrentContext()",
" at VertiGIS.Workflow.Runtime.Execution.AmbientState.Execute()",
" at VertiGIS.Workflow.Runtime.Execution.Engine.Run(Program program, RunOptions options)",
" at VertiGIS.Workflow.Hosts.Server.Host.RunWorkflow(String workflowJson, IDictionary`2 inputs, IDictionary`2 trivia, String accessToken, String portalUrl, CancellationToken cancellationToken)",
" at VertiGIS.Workflow.Server.Foundation.WorkflowRunner.ProcessAsync(Object content)"
]
-
I rolled back to 5.31.0 and it's working again.
0 -
Thank you for pointing this out. We confirm this is an issue. Our develper will look into this.
0 -
Sindre Sellæg The issue has been logged as Bug #213635 in our system. You can look out for that number in future release notes to determine which release includes the fix.
1 -
Until this is addressed, do you know if it's possible to generate the token through a webrequest to the AGS server?
0 -
You ought to be able to with Send Web Request.
Depending on your use case, you also might already have a token in your web map that you can grab; how you can access that token will be based on your application. Get Layer could be useful if you're just trying to query a map layer, but if you need to run a server tool of some sort then you'll still need that token.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
5 kommentarer