Maximum request length exceeded error when trying to call workflow api

  • 16 February 2021
  • 0 replies
  • 13 views

Badge +6
  • Nintex Employee
  • 11 replies

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."

 

18240iF7937782A674F450.png

 

Error Code

18242i187DC86280FC4458.png

or

18243i27AC3950CC0A69E5.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 blackpearlWebServicesAPIWorkflowV1

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


0 replies

Be the first to reply!

Reply