vs4vijay / newman-reporter-influxdb

Newman Reporter for InfluxDB
MIT License
19 stars 3 forks source link

400 returned following steps provided #18

Closed odonnell-anthony closed 3 years ago

odonnell-anthony commented 3 years ago

Influx 1.8.4 newman 5.2.2

Follow steps provided in repo, is not successful returned status code 400

newman run .\collection.json -r influxdb --reporter-influxdb-server localhost --reporter-influxdb-port 8086 --reporter-influxdb-name postman --reporter-influxdb-measurement testing  --reporter-influxdb-username admin --reporter-influxdb-password admin

[+] Starting collection: test 1618250141484-0.08094263785491762
[1] Running httpbin post
[+] Finished collection: test (1618250141484-0.08094263785491762)
[-] ERROR: while sending data to InfluxDB Request failed with status code 400

Can query influx from command line curl -G 'http://localhost:8086/query?pretty=true' --data-urlencode "db=postman" --data-urlencode "q=show measurements" { "results": [ { "statement_id": 0 } ] }

vs4vijay commented 3 years ago

Hey @odonnell-anthony, Can you try passing "identifier" option and try? looks like due to recent changes, a mandatory field "identifier" is introduced. Could you try passing --reporter-influxdb-identifier and see if that works, I will change it to optional field.

Example: --reporter-influxdb-identifier anythingUnique

odonnell-anthony commented 3 years ago

Using --reporter-influxdb-identifier test on the end of the same command in my first comment returned the same error

manjunathin commented 3 years ago

--reporter-influxdb-identifier anythingUnique seems to be working for me

manjunathin commented 3 years ago

@odonnell-anthony : Can you try with syntax ex: newman run AAA -e BBB --ssl-client-cert SSSS.pem --insecure -r cli,junit,html,influxdb --reporter-influxdb-server localhost --reporter-influxdb-port 8086 --reporter-influxdb-name ZZZ --reporter-influxdb-identifier test --reporter-influxdb-measurement testcase

manjunathin commented 3 years ago

@vs4vijay :Can you make --reporter-influxdb-identifier optional?

vs4vijay commented 3 years ago

Hey @manjunathin - I have released a new version (2.0.4) with identifier related changes. Could you please test and let me know?

CC: @odonnell-anthony

manjunathin commented 3 years ago

@vs4vijay : Working as expected with v2.0.4..Thank You