In very few details: The method that is returning this is:
https://docs.dataminer.services/develop/webservices/WS_v1/WS_Methods_v1/AddCommentToAlarmV2.html
I've not noticed a pattern for this, but I guess that this is the result if the comment length is greater than a set char limit. The normal Cube interface doesn't seem to have one (i tried up to 10000 characters). Can someone tell me this?
Hi Caio,
A 413 usually means the request body is larger than the server is willing to accept. It isn’t tied to DataMiner in particular. It’s a standard safeguard on web servers.
You can raise the limit if needed, but the restriction exists for a reason. Very large comments can slow things down, so it’s better to keep them on the smaller side when possible.
Edit:
To have a look at your limits, you can check the web.config inside the "C:\Skyline DataMiner\Webpages\API":
<configuration>
<system.web>
<httpRuntime maxRequestLength="51200" />
</system.web><system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="20971520" />
</webServices>
</scripting>
</system.web.extensions><system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="52428800" />
</requestFiltering>
</security>
</system.webServer>
</configuration>
I've updated my answer to point to the location of those limits.
Cool.
With this, I believe I implemented something that will truncate requests that try to go beyond the limit.
Thank you
Yes.
But I don't want to raise the limit. I want to know what the limit is. So I can develop around it.