I'm working on software testing with testcafe, for a month now, I've been facing a problem which is when I run the test and it clicks on the login button, sometimes it passes and sometimes not, which causes the test to fail. it throws an error
Error details: Failed to perform a request to the resource at
"mysite.com" because of an error. The request header's size is 10242 bytes which exceeds the set limit. It causes an internal Node.js error on parsing this header. To fix the problem, you need to add the '--max-http-header-size=...' flag to the 'NODE_OPTIONS' environment variable:
macOS, Linux (bash, zsh)
export NODE_OPTIONS='--max-http-header-size=20000'
Windows (powershell)
$env:NODE_OPTIONS='--max-http-header-size=20000'
Windows (cmd)
set NODE_OPTIONS='--max-http-header-size=20000'
and then start your tests.
This happens when I run the tests locally and when in Azure Pipelines. I tried with --max-http-header-size=20000 locally and maxHttpHeaderSize in the pipeline, but it's not helping.
Anyone can help?
Aucun commentaire:
Enregistrer un commentaire