Hello:
I’m getting the following Error when I try to run my test.
WARN[0000] error getting terminal size error=“The handle is invalid.”
panic: runtime error: integer divide by zero
I’m a student and have never used this program before so i’m not 100% sure if I have something setup wrong. I tried changing the web address to the one in listed in the docs under running k6 and received the same result.(test.k6.io’)
I tried trimming down the test to the bare min by committing as much as i could out but also received the same error.
Any help you can give would be greatly appreciated.
The full info that shows after running the test is below.
execution: local
script: k6load.js
output: -
scenarios: (100.00%) 1 executors, 20 max VUs, 1m0s max duration (incl. graceful stop):
* default: Up to 20 looping VUs for 30s over 1 stages (gracefulRampDown: 30s, gracefulStop: 30s)
WARN[0000] error getting terminal size error="The handle is invalid."
panic: runtime error: integer divide by zero
[there is more info about pulling data from github but it will not let me post it due to posting link cap]
I am using the latest version of k6 and have updated everything on the windows side:
k6 v0.27.0 (2020-07-14T12:09:46+0000/v0.27.0-0-g6fa889d0, go1.14.4, windows/amd6 4)
My k6 file is as follows:
import {http} from 'k6/http';
import { check, sleep } from 'k6';
// import { Counter, Rate } from 'k6/metrics';
// const CounterErrors = new Counter('Errors');
// const ErrorRate = new Rate('error_rate');
export const options = {
stages: [
{ duration: '30s', target: 20 },
// { duration: '1m30s', target: 10 },
// { duration: '20s', target: 0 },
],
// thresholds: {
// error_rate: ['rate<0.1'],
// },
};
export default function () {
const res = http.get('http://127.0.0.1:3020/reviews/6/metas');
// const success = check(res, {
// 'status is 200': (r) => r.status === 200,
// });
// if (!success) {
// ErrorCount.add(1);
// ErrorRate.add(true);
// } else {
// ErrorRate.add(false);
// }
sleep(0.5);
}