Open jonleighton opened 5 days ago
Possibly seeing a similar issue:
[percy:core:queue] Clearing discovery queue, queued state: 0, pending state: 0 (15ms)
[percy:core:browser] Closing browser (1ms)
[percy:core:browser] Browser closed (18ms)
[percy:core:queue] Clearing snapshot queue, queued state: 0, pending state: 0 (1ms)
[percy:core] Build not created (0ms)
[percy:cli] Error: Protocol error (Runtime.callFunctionOn): Execution context was destroyed.
"@percy/cli": "^1.28.8",
"storybook": "^8.1.10",
The problem
We are uploading snapshots via a manual
POST /percy/snapshot
API request, within apercy exec
invocation.Sometimes, there is an error during asset discovery, and we see the following log lines:
However, the
POST /percy/snapshot
request returns a200 OK
response, with{"success": true}
in the body. Therefore our build succeeds, even though the snapshot failed, and there is no way for us to detect the problem.I would expect a
500 Internal Server Error
response in this situation, and possibly some details in the response body.Environment
@percy/cli
version: 1.28.8