k6 icon indicating copy to clipboard operation
k6 copied to clipboard

`setup()` and `teardown()` errors are not logged when invoked from REST API

Open na-- opened this issue 3 years ago • 0 comments
trafficstars

If you run this script:

export const options = {
    paused: true,
};

export function setup() {
    console.log('foo')
    throw new Error('bar');
}

export default function (data) {
}

And execute curl -iX POST 'http://localhost:6565/v1/setup' in another terminal, you would not see the script error bar in the terminal, but you'd see foo.

na-- avatar Mar 09 '22 08:03 na--