Architect: cannot call HttpService.SendRequest from WF Execution in Architect

I was trying to …

  1. I have simple workflow where I call simple HTTP GET Request, i.e. https://community.origam.com
  2. I try to execute workflow in Architect using Execute button to get immediate results while developing the solution.

I was expecting …

HTTP Request will be send and I get HTTP result.

Instead I’ve got …

Exception in architect that provider is null:

Parameter name: provider
Workflow stack trace
	Step: 'TEST:GET_Issues/Issues'

ion: Value cannot be null.
Parameter name: provider ---> System.ArgumentNullException: Value cannot be null.
Parameter name: provider
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
   at Origam.HttpTools.GetResponse(String url, String method, String content, String contentType, Hashtable headers, String authenticationType, String userName, String password, Nullable`1 timeoutMs, CookieCollection cookies, Boolean ignoreHTTPSErrors)
   at Origam.HttpTools.SendRequest(String url, String method, String content, String contentType, Hashtable headers, String authenticationType, String userName, String password, Boolean returnAsStream, Nullable`1 timeout)
   at Origam.HttpTools.SendRequest(String url, String method, String content, String contentType, Hashtable headers, Nullable`1 timeout)
   at Origam.Workflow.HttpServiceAgent.Run()
   at Origam.Workflow.Tasks.ServiceMethodCallEngineTask.OnExecute()
   at Origam.Workflow.ProfilingTools.<>c__DisplayClass4_0.<ExecuteAndLogDuration>g__FuncToExecute|0()
   at Origam.Workflow.ProfilingTools.ExecuteAndLogDuration(Func`1 funcToExecute, String logEntryType, String path, String id, Func`1 logOnlyIf)
   at Origam.Workflow.Tasks.AbstractWorkflowEngineTask.MeasuredExecution()
   at Origam.Workflow.Tasks.ServiceMethodCallEngineTask.Execute()
   --- End of inner exception stack trace ---

Notes

I checked the code and see that there is a call of serviceProvider. I have also found this issue Scheduler: WF with http request step ends with error - #2 by JiriPrajz so I can see that there were some changes regarding HttpRequest calls.

It looks like to me that from architect there could be some dependency injection missing.

Call from HTML5 client works without any problems.

What build are you using?

Architect build: 2024.2.0.3261

The issues is supposed to be resolved in 2024.2.1 with the commit, you have referenced.

1 Like

On second thought, I’d recommend to go with 2024.2.2.

1 Like

I will check it out. Thank you for your recommendations.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.