You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changedection version: 0.44
Host: Docker compose file on an Alpine Linux VM
I'm trying to get the contents of a specific watch via http://<url>:5000/api/v1/watch/<uuid>/history/<snapshot> and the response returns null. Upon further testing, the following routes also return null:
/api/v1/systeminfo
/api/v1/watch -- both GET and POST
/api/v1/watch/<uuid> -- GET (haven't tried PUT)
/api/v1/watch/<uuid>/history/<timestamp>
All of the HTTP requests I make returns with a 200, but the content is null.
Edit: This behavior is also present when running cURL.
Maybe this is just due to confusion on my end for the purpose of the API, but my assumption is that if I were to run a GET request for a specific uuid and timestamp I'd get the contents of the diff for that specific snapshot. Is that assumption incorrect?
Final edit: The root cause of this was that I disabled the API access token. I'm only serving this on my local network, so I didn't think it would be necessary to require it. Turns out if the token is disabled, any HTTP request (sans .../history for some reason) will return null. Might be something to fix at some point.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Changedection version: 0.44
Host: Docker compose file on an Alpine Linux VM
I'm trying to get the contents of a specific watch via
http://<url>:5000/api/v1/watch/<uuid>/history/<snapshot>
and the response returnsnull
. Upon further testing, the following routes also return null:/api/v1/systeminfo
/api/v1/watch
-- bothGET
andPOST
/api/v1/watch/<uuid>
--GET
(haven't triedPUT
)/api/v1/watch/<uuid>/history/<timestamp>
All of the HTTP requests I make returns with a
200
, but the content isnull
.Edit: This behavior is also present when running cURL.
Maybe this is just due to confusion on my end for the purpose of the API, but my assumption is that if I were to run a
GET
request for a specific uuid and timestamp I'd get the contents of the diff for that specific snapshot. Is that assumption incorrect?Final edit: The root cause of this was that I disabled the API access token. I'm only serving this on my local network, so I didn't think it would be necessary to require it. Turns out if the token is disabled, any HTTP request (sans
.../history
for some reason) will returnnull
. Might be something to fix at some point.Beta Was this translation helpful? Give feedback.
All reactions