When making a request to `/api/v1/actions/workspac...
# gooddata-cn
c
When making a request to
/api/v1/actions/workspaces/<workspace-id>/execution/afm/execute
with a larger payload due to thousands of "Account ID"s in the filters, we are seeing the following error (from afm exec api service):
Copy code
{"exc":"org.springframework.core.io.buffer.DataBufferLimitException: Exceeded limit on max bytes to buffer : 262144
	at org.springframework.core.io.buffer.LimitedDataBufferList.raiseLimitException(LimitedDataBufferList.java:99)
The content length we are sending is
313640
. Is there any way for us to increase this limit? We are using GD CN 2.3.2, but migrating to 3.1.0 soon (solutions for either/both would be great)
b
Hello Cayce, it seems that the 256kB buffer length is a hardcoded limitation of spring framework that we are using. We looked into ways of how to increase this limit by setting some environment variables, but it doesn't seem possible. To change this we will need to make changes in our code (the scope of the changes is yet to be evaluated), which means that we wouldn't be able to back port this to previous versions. Obvious solution is shorten the payload i.e. using positive/negative filters, aggregating the filtered values into another attribute (`Account ID`s
A
,
B
and
C
would be assigned with value of another attribute
Account Group
ABC
etc.).
👍 1