Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'values' of undefined" #19

Closed
emil45 opened this issue Mar 21, 2021 · 4 comments
Closed

Cannot read property 'values' of undefined" #19

emil45 opened this issue Mar 21, 2021 · 4 comments

Comments

@emil45
Copy link

emil45 commented Mar 21, 2021

Hi Ben,

New error popped - never saw it before:

ERRO[0003] handleSummary() failed with error "TypeError: ejs:301
    299|             <h4>Virtual Users</h4>
    300|             <i class="fas fa-user icon"></i>
 >> 301|             <div class="row"><div>Min</div><div><%= data.metrics.vus.values.min %></div></div>
    302|             <div class="row"><div>Max</div><div><%= data.metrics.vus.values.max %></div></div>
    303|           </div>
    304|         </div>

Cannot read property 'values' of undefined", falling back to the default summary  source=console

I don't have a clue why ... because other test suites with setup and teardown functions - the htmlSummary working great.

@emil45
Copy link
Author

emil45 commented Mar 21, 2021

Maybe something with the options ? but the same options works in other tests:

export const globalOptions = {
  setupTimeout: "5m",
  scenarios: {
    default: {
      executor: "per-vu-iterations",
      vus: 1,
      iterations: 1,
      maxDuration: "1h",
    },
  },
  thresholds: {
    "http_req_duration{scenario:default}": [`max>=0`],
    "http_req_sending{scenario:default}": [`max>=0`],
    "http_req_waiting{scenario:default}": [`max>=0`],
    "http_req_receiving{scenario:default}": [`max>=0`],
  },
  summaryTrendStats: ["min", "avg", "max", "p(90)", "p(95)"],
};

@ebarped
Copy link

ebarped commented Mar 26, 2021

Hi!

I was having the same error, and fixed it by adding a sleep(1); after each check.
My guess is that there is a race condition if you dont sleep, but im not sure.

I hope this helps you :)

@emil45
Copy link
Author

emil45 commented Apr 4, 2021

Hi, I had already a sleep of 0.1, but changing to sleep(1) worked for some reason...
guess it's something that can be fixed in the source code.

@benc-uk
Copy link
Owner

benc-uk commented Oct 14, 2021

Should be fixed in latest build on the main branch
or here if Github is caching the CDN https://raw.githubusercontent.com/benc-uk/k6-reporter/2.3.1/dist/bundle.js

@benc-uk benc-uk closed this as completed Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants