Visual-Regression-Tracker / backend

Apache License 2.0
12 stars 12 forks source link

Playwright - /test-runs Error #303

Open Enes5519 opened 3 months ago

Enes5519 commented 3 months ago

I'm running vrt tests with Playwright but I get this error most of the time.

Error: {
    "path": "/test-runs",
    "name": "TypeError",
    "message": "Cannot read property 'data' of undefined",
    "exception": {},
    "stack": "TypeError: Cannot read property 'data' of undefined\n    at PixelmatchService.getDiff (/app/dist/src/compare/libs/pixelmatch/pixelmatch.service.js:40:40)\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (internal/process/task_queues.js:95:5)\n    at async TestRunsService.calculateDiff (/app/dist/src/test-runs/test-runs.service.js:138:28)\n    at async TestRunsService.postTestRun (/app/dist/src/test-runs/test-runs.service.js:66:33)"
}

    at /builds/.../node_modules/@visual-regression-tracker/sdk-js/dist/visualRegressionTracker.js:116:27
    at /builds/.../node_modules/@visual-regression-tracker/sdk-js/dist/visualRegressionTracker.js:8:71
    at __awaiter (/builds/.../node_modules/@visual-regression-tracker/sdk-js/dist/visualRegressionTracker.js:4:12)
    at handleException (/builds/.../node_modules/@visual-regression-tracker/sdk-js/dist/visualRegressionTracker.js:103:16)
Enes5519 commented 3 months ago

https://www.virustotal.com/gui/file/695425e20bb7fdab1690bf017f9ca815372d13d5c4e8e3ca588108e2ddb042eb?nocache=1