canarytrace / documentation

Plug’n'Play stack for testing and monitoring web applications from user perspective.
http://canarytrace.com
6 stars 0 forks source link

Problem with RequestLog during performance audit #89

Closed rdpanek closed 2 years ago

rdpanek commented 2 years ago

Some problem with log responses

[0-0] Canarytrace:labels:mode=canarytrace-pro-4.21.7,engine=wdio,develop164840
[0-0] Canarytrace:uuid:20032216484102082600000000000000
[0-0] RUNNING in chrome - /Users/rdp/htdocs/canary/web-perf-scripts/wdio/5-k8s-the-internet-login-pt-audit.js
[0-0] Canarytrace:Start:More steps and login open page
[0-0] open page
[0-0] Canarytrace:RequestLog:More steps and login open page:13
[0-0] Canarytrace:PerformanceEntries:More steps and login open page:11
[0-0] Canarytrace:Start:More steps and login performance audit
[0-0] performance audit
[0-0] Canarytrace:PerformanceAudit https://the-internet.herokuapp.com/login
[0-0] Elastic:Report:processing c.report-2022.03.20 364 ms
[0-0] TypeError in "More steps and login.performance audit"
TypeError: Cannot read properties of undefined (reading 'response')
    at EventEmitter.<anonymous> (/Users/rdp/htdocs/canary/canarytrace/services/RequestLog.js:152:33)
    at EventEmitter.emit (node:events:390:28)
    at EventEmitter.emit (node:domain:475:12)
    at Browser.WebDriver.prototype.<computed> [as emit] (/Users/rdp/htdocs/canary/canarytrace/node_modules/@wdio/utils/build/monad.js:165:39)
    at WebSocket.<anonymous> (/Users/rdp/htdocs/canary/canarytrace/node_modules/@wdio/devtools-service/build/index.js:221:31)
    at WebSocket.onMessage (/Users/rdp/htdocs/canary/canarytrace/node_modules/ws/lib/event-target.js:199:18)
    at WebSocket.emit (node:events:402:35)
    at WebSocket.emit (node:domain:475:12)
    at Receiver.receiverOnMessage (/Users/rdp/htdocs/canary/canarytrace/node_modules/ws/lib/websocket.js:1022:20)
    at Receiver.emit (node:events:390:28)
[0-0] /Users/rdp/htdocs/canary/canarytrace/node_modules/mocha/lib/runner.js:965

Deployment / CronJob / CLI command / Docker compose Paste please your runnner, script, etc.:

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Environment information:

Additional context Add any other context about the problem here.