percy / cli

The Percy CLI is used to interact with, and upload snapshots to, percy.io via the command line.
https://docs.percy.io/docs/cli-overview
70 stars 43 forks source link

413 Payload Too Large #1521

Closed bubafinder closed 7 months ago

bubafinder commented 7 months ago

The problem

I am experiencing a problem with snapshot payload size. Can't upload snapshots.

Environment

Details

defer-uploads is set to false. There is not any asset on the page.

Debug logs

> cda-platform@0.7.0 e2e:cda:visual /Users/lovric/dev/cda-platform
> cd tests/cda && pnpm e2e:percy

> cda-e2e@1.0.0 e2e:percy /Users/lovric/dev/cda-platform/tests/cda
> pnpm percy exec -- playwright test --project=visual --project=chromeSetup

[percy] Percy has started!
[percy] Running "playwright test --project=visual --project=chromeSetup"

Running 9 tests using 1 worker
[1/9] [chromeSetup] › ../../packages/lxp-e2e-pom/src/clotho/SignInOrRegister.ts:68:3 › authenticate u
[2/9] [visual] › specs/visual/visual.spec.ts:15:1 › Should take snapshots of HTML & Video TEs
[3/9] [visual] › specs/visual/visual.spec.ts:21:1 › Should take snapshots of Assessments - Answering state
[4/9] [visual] › specs/visual/visual.spec.ts:31:1 › Should take snapshots of Assessments - Answered state
[percy] Uploading resource above 25MB might fail the build...
[5/9] [visual] › specs/visual/visual.spec.ts:40:1 › Should take snapshots of Assessments - Summary state
[percy] Uploading resource above 25MB might fail the build...
[percy] Encountered an error uploading snapshot: CDA - Assessments - Answering
[percy] Error: 413 Payload Too Large
<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>

[6/9] [visual] › specs/visual/visual.spec.ts:51:1 › Should take snapshots of QS Reflection - Answering state
[percy] Uploading resource above 25MB might fail the build...
[7/9] [visual] › specs/visual/visual.spec.ts:61:1 › Should take snapshots of QS Reflection - Answered state
[percy] Encountered an error uploading snapshot: CDA - Assessments - Answered
[percy] Error: 413 Payload Too Large
<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>

[8/9] [visual] › specs/visual/visual.spec.ts:70:1 › Should take snapshots of QS Reflection - Summary state
[9/9] [visual] › specs/visual/visual.spec.ts:81:1 › Should take snapshots of 404 error page
  Slow test file: [visual] › specs/visual/visual.spec.ts (1.2m)
  Consider splitting slow test files to speed up parallel execution
  9 passed (1.3m)

To open last HTML report run:

  pnpm exec playwright show-report

[percy] Encountered an error uploading snapshot: CDA - Assessments - Summary
[percy] Error: 413 Payload Too Large
<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>

[percy] Error: Finalizing build 32693805 failed: cannot finalize before all snapshot resources are uploaded. This is likely a client error, please make sure that content for all SHAs in 'missing-resources' from the snapshot response are uploaded before calling finalize.
 ELIFECYCLE  Command failed with exit code 1.
 ELIFECYCLE  Command failed with exit code 1.