Hey all,
Our workflows have decided to stop working and looking at the error in LF Forms, I can see the following:
Received an error from the Workflow server during execution of the Workflow service task: "The server encountered an error processing the request. Please see the <a rel="help-page" href="https://*/Forms/api/help">service help page</a> for constructing valid requests to the service. The remote server returned an error: (400) Bad Request. The server encountered an error processing the request. Please see the <a rel="help-page" href="https://*/Forms/api/help">service help page</a> for constructing valid requests to the service. The remote server returned an error: (400) Bad Request. The remote server returned an error: (400) Bad Request.". [LFF5208-WFExecutionError] Details: URL: Error: WFExecutionError Date: 2/10/2023 9:33:45 AM (AUS Eastern Standard Time) HTTP Status Code: 500 Business Process ID: 2 Instance ID: 21330 Business Process Name: Leave Application Request Stack Trace: Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException Message: Received an error from the Workflow server during execution of the Workflow service task: "The server encountered an error processing the request. Please see the <a rel="help-page" href="https://*/Forms/api/help">service help page</a> for constructing valid requests to the service. The remote server returned an error: (400) Bad Request. The server encountered an error processing the request. Please see the <a rel="help-page" href="https://*/Forms/api/help">service help page</a> for constructing valid requests to the service. The remote server returned an error: (400) Bad Request. The remote server returned an error: (400) Bad Request.". [LFF5208-WFExecutionError] at Laserfiche.Forms.Routing.ServiceTask.Execute(Int32 instanceId, IRoutingContext routingContext)
So I went into the Workflow Administration Console to test if the connection to the web service is being made, where I come across the e following error:
The remote server returned an error: (400) Bad Request.
So I went in to check the URL that is having the issue from the first error and I see this page (https://*/Forms/api/help):
Is this right?
When I view the Workflow's counter part (which is on a different machine to Laserfiche Forms), I can see things do appear to seem like they are working
Inside the folder, C:\Program Files\Laserfiche\Laserfiche Forms\Forms\Api I can only see two files:
- LfFormService.svc and;
- Web.config
Is this right?
This is what is in the Web.config file:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<compilation debug="false" targetFramework="4.0" />
<customErrors mode="RemoteOnly" />
<httpRuntime maxRequestLength="67108864" />
</system.web>
<appSettings />
<system.serviceModel>
<services>
<service name="Laserfiche.Forms.Api.LfFormService">
<endpoint address="" behaviorConfiguration="Laserfiche.Forms.Api.WebHttpBehavior1" binding="webHttpBinding" bindingConfiguration="streamedBindingSecure" contract="Laserfiche.Forms.Api.ILfFormService" />
</service>
</services>
<bindings>
<webHttpBinding>
<binding name="streamedBindingSecure" transferMode="StreamedRequest" maxReceivedMessageSize="2147483648" maxBufferSize="1048576" contentTypeMapper="Laserfiche.Forms.Api.Host.RawContentTypeMapper, E-Forms">
<security mode="Transport" />
<readerQuotas maxArrayLength="920397152" maxStringContentLength="2147483647" maxDepth="90973152" />
</binding>
</webHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceAuthorization serviceAuthorizationManagerType="Laserfiche.Forms.Api.Host.ApiAuthentication, E-Forms" />
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="Laserfiche.Forms.Api.WebHttpBehavior1">
<webHttp helpEnabled="true" automaticFormatSelectionEnabled="false" />
</behavior>
</endpointBehaviors>
</behaviors>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="false" />
</system.webServer>
</configuration>
Where should I start looking to trying to solve this issue as at this point I am not sure what I can try to do.
Thanks