No ratings

Maximum request length exceeded error when trying to call workflow api

Issue

When calling K2 workflow api:

https://k2.denallix.com/api/workflow/v1/workflows/xx

 

The following error is thrown:

 

"Maximum request length exceeded." or "An error has occurred."

 

NikR_0-1623855996443.png

 

Error Code

NikR_2-1623856090318.png

or

NikR_3-1623856115955.png

 

Resolution

The default MaxRequestLength set in IIS for workflow api site is 2 MB. You can add the following key in the <system.web> section in the web.config file to increase the size.

<httpRuntime maxRequestLength="16384" targetFramework="4.6.1" />

The web.config file is located in the following folder:

C:\Program Files (x86)\K2 blackpearl\WebServices\API\Workflow\V1

Please make a backup copy of the file before making changes.

Increasing this limit could potentially raise performance issues if the server does not have enough resources to process the request. 

 

Additional Information

Related Links

Labels: (1)
Version history
Last update:
‎06-21-2021 02:57 PM
Updated by:
Contributors