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
afterResponse not triggered in case of connection error #437
Comments
If a connection is refused there's no response to call the function on. :) |
OK, I understand this. In any case, is there any chance to have this in a next release? Or, how else can I (custom) log such cases? There is Thank you, |
You can use a scenario-level function myOnErrorHandler(err, requestParams, context, events, callback) {
// ...
return callback();
} |
Thank you, that works for my case. |
Where is this documented? |
For those who got here, I posted a solution to this in https://stackoverflow.com/questions/71273683/in-artillery-how-do-i-log-etimedout/71332728#71332728 |
Hello,
I've notice that
afterResponse
is not triggered in case of connection errors (timeouts, invalid host etc) such asECONNREFUSED
(on the other hand, such cases are reported in the artillery output).The text was updated successfully, but these errors were encountered: