I have a script which worked fine months ago. It is a very simple script to:
- log into a web service (that part works fine)
- click a file browse button (to display the file upload dialog),
- wait for me to select a file and click Open.
- begin uploading the file (with green progress thermometer) at which point the system fails with the following text showing inside the progress thermometer (which has turned red):
<html> <head><title>413 Request Entity Too Large</title></head> <body> <center><h1>413 Request Entity Too Large</h1></center> <hr><center>nginx/1.18.0 (Ubuntu)</center> </body> </html> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page -->
More specifically: The web system begins uploading the file, showing a progress thermometer with green increasing value, but at about the 30% point the thermometer goes red with the above text inside the thermometer.
The two things that changed from before are:
A) I upgraded Katalon Studio from roughly v8.6.5 to v8.6.8 (most recent as of today 2023/09/25)
B) The login process is using a different IP address (web service moved to a new machine) but the login goes fine and the script code after that is unchanged.
More information: The process works if I do it manually. Here is what a successful, manually invoked, run looks like:
Any ideas why Katalon-scripts only cause this failure?
Thanks very much for these responses.
I have been debugging this all day and have more details to narrow down the issue.
- If I start a Chrome browser manually and do the test, there is no problem. The upload succeeds.
- If I let Katalon Studio run a script to do the exact same set of steps, the “select upload” step fails during upload.
- If I use the browser opened by KS and manually try to repeat the same steps (in either the same tab or a new tab), it fails!
So, it seems to me that something about the way the browser is being invoked by KS is causing the problem.
So I got the invocation string as follows, but I don’t see a “message length” parameter.
Manually invoked, the command is (as revealed by chrome://version) :
/Applications/Google Chrome.app/Contents/MacOS/Google Chrome --flag-switches-begin --flag-switches-end --origin-trial-disabled-features=WebGPU --disable-nacl
As invoked by Katalon Studio:
/Applications/Google Chrome.app/Contents/MacOS/Google Chrome --allow-pre-commit-input --disable-background-networking --disable-client-side-phishing-detection --disable-default-apps --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --enable-automation --enable-logging --load-extension=/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/extensions/Chrome/Smart Wait --log-level=0 --no-first-run --no-service-autorun --password-store=basic --remote-debugging-port=0 --test-type=webdriver --use-mock-keychain --user-data-dir=/var/folders/rv/2yt8jycd73xb_d28qkrf0hs80000gn/T/.org.chromium.Chromium.p7eVxG --flag-switches-begin --flag-switches-end --disable-nacl data:,
Any ideas as to what part of the above is causing the 413 Request Entity Too Large during file upload?