Skip to content

204 'No Content' Status Code (Success for InfluxDB) on Notifications is considered failure #2896

Closed
@guicattani

Description

@guicattani

Describe the bug

Whenever InfluxDB receives data correctly it returns a 204 status code, but Change Detection notification considers that status code as an error.

Version
v0.48.06

How did you install?
Docker Container

To Reproduce

Steps to reproduce the behavior:

  1. Spin up a InfluxDB with an API key
  2. Add something like:
post://influxdb:8086/api/v2/write?org=testorg&bucket=test&+Authorization=Token TESTTOKEN

in the Notification URL List

test,testlabel=thisisatest,testlabel=thisisatest open_positions={{current_snapshot}}

in the Notification Body
4. Save and let the watcher run
5. See that the watcher failed with error

Expected behavior
2xx status codes should probably be considered success

Screenshots
image

Desktop (please complete the following information):

  • OS: Linux
  • Browser Firefox
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version 133.0

Thank you so much :)
Let me know if you need anything else. And thanks again for this amazing project 😁

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions