Skip to content

Commit

Permalink
Merge pull request #48 from vs4vijay/fix-undefined-response-error
Browse files Browse the repository at this point in the history
Fix TypeError for undefined response properties in InfluxDBReporter
  • Loading branch information
vs4vijay authored Aug 1, 2024
2 parents 2149747 + 1cd524c commit 6856f21
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/influxdb-reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ class InfluxDBReporter {

console.log(`[${this.context.currentItem.index}] Running ${item.name}`);

if (!args.response) {
console.log(`[-] ERROR: Response is undefined for request ${item.name}`);
return;
}

const data = {
collection_name: this.options.collection.name,
id: this.context.identifier,
Expand Down

0 comments on commit 6856f21

Please sign in to comment.