cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
587
Views
0
Helpful
3
Replies

NSO Rest API post size limit

asiqbal
Cisco Employee
Cisco Employee

Hello,

What is the default post size limit for NSO web server. I am trying to call the rest API (actions) using http post method with large data. The API works fine when payload size is around 4 MB but fails with "application communication failure" when it is over 4-6 MB. 

Is there a size limit that I can increase?

 

Thanks!

3 Replies 3

Jan Lindblad
Cisco Employee
Cisco Employee

There is no particular size limit. More likely that some application consuming the data is too slow to respond to NSO, so that NSO considers it failed. Do you know which application is causing this? You say this is a POST, is it an action/rpc invocation? If so, the application implementor might need to add a call back to NSO to ask for more processing time (python DPAPI: extend_timeout())

Hi Jan,
We ran into the timeout issue earlier and fixed it by increasing the timeout. However, this issue is different. In this case NSO throws “application communication failure” message very quickly before even starting to process the payload. Same type of request works fine if we reduce the payload in half.

Do you know which application is involved in this error? Did you check (after possibly enabling) the logs, e.g. the developer log?