Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cannot save test : ERROR - Request Entity Too Large #2508

Open
glassalle59 opened this issue Dec 5, 2023 · 6 comments
Open

[BUG] Cannot save test : ERROR - Request Entity Too Large #2508

glassalle59 opened this issue Dec 5, 2023 · 6 comments

Comments

@glassalle59
Copy link

Cerberus4.17-SNAPSHOT-1756 Build 20231015-163303

Hello

When I save my test/ scenario, I have an error : ERROR - Request Entity Too Large

image

It seems that because I have many action "upload File to Robot" with a BIG content (Conversion from PDF to base64) in my scenario. Indeed, I need to upload 50 PDF on my test.

You can reproduce by adding one more time the last step on the scenario here : https://lmc.cerberus-testing.com/TestCaseScript.jsp?test=ECONTRAT%20-%20Sc%C3%A9narios&testcase=0004A&step=13&tabactive=tabSteps#

Is it possible to correct the error and allow me to upload many file in the same scenario ?

@vertigo17
Copy link
Member

I beleive request is too big as it include all the files to upload.
Maybe it can be fixed by increasing max size on application server side if possible.
best will be to the manage files outside test case définition. If files are images you can already use it with .base64 suffix.
for the other files we will have to create the screen and object.

@glassalle59
Copy link
Author

all files I want to upload are PDF.
How can I manage these types of files outside test case ?

@vertigo17
Copy link
Member

You can't yet.
Do you have any way to split your actions/controls on different testcases or reduce file sizes.

@glassalle59
Copy link
Author

glassalle59 commented Dec 6, 2023

I resolve this issue by spliting the base64 value into many variables then concatenate the full value into a final variable with groovy

@vertigo17
Copy link
Member

Good but Looks very dirty ;-(.

@vertigo17
Copy link
Member

The error is coming from nginx http server.
As a workaround the following parameter can be changed (it default to 1M)

client_max_body_size 5M;

inside config file

vi /etc/nginx/nginx.conf

;
Target to create data file object is still relevant though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants