percy / percy-testcafe

TestCafe client library for visual regression testing with Percy
https://docs.percy.io/docs/testcafe
MIT License
8 stars 4 forks source link

413 Request Entity Too Large when uploading 10 screenshots #19

Closed CTStuffs closed 3 years ago

CTStuffs commented 4 years ago

I'm getting this error after running my tests, when percy is stating that it's waiting for the snapshots to complete . Not sure where this is coming from, as it didn't happen before.

percy] stopping percy...
[percy] waiting for 10 snapshots to complete...
[percy] StatusCodeError 413 - "<html>\r\n<head><title>413 Request Entity Too Large</title></head>\r\n<body>\r\n<center><h1>413 Request Entity Too Large</h1></center>\r\n<hr><center>nginx/1.16.1</center>\r\n</body>\r\n</html>\r\n" | Tue Aug 11 2020 10:07:16 GMT+1000 (Australian Eastern Standard Time)
[percy] StatusCodeError 400 - {"errors":[{"status":"bad_request","detail":"Finalizing snapshot 369503809 failed: cannot finalize before all snapshot resources are uploaded. This is likely a client library bug, please make sure that content for all SHAs in 'missing-resources' from the snapshot response are uploaded before calling finalize."}]} | Tue Aug 11 2020 10:07:16 GMT+1000 (Australian Eastern Standard Time)
[percy] done.
[percy] error finalizing build
[percy] StatusCodeError 400 - {"errors":[{"status":"bad_request","detail":"Finalizing build 6442497 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."}]} | Tue Aug 11 2020 10:07:17 GMT+1000 (Australian Eastern Standard Time)

The command I use to run my tests is something like so:

npx percy exec -- testcafe chrome folder/*test.* --skip-js-errors --speed 0.7

I am also using a free account, if that is of any relevance.

wwilsman commented 3 years ago

@CTStuffs sorry about the lack of response here! If you're still experiencing this issue and haven't already done so, please open a support request and include links to your build and any other information you might think is helpful!

Typically, a 413 error means that either your snapshot HTML or one of your assets is too large to upload to Percy. This might happen if you have several inline images that use data-urls, or if you have several complex canvases that get serialized into data-urls.

Since this isn't directly related to the @percy/testcafe SDK, I'm going to close this issue. For anybody else finding this issue looking for status code errors, please open a support ticket and we'll be happy to help debug!