syncthing: /rest/system/status returns empty response during startup
Syncthing version 0.12.20 (although it’s been around since at least the beginning of February).
During startup, the /rest/system/status
endpoint can return an empty response (seems to happen more on some devices than others).
The headers returned are:
Access-Control-Allow-Origin: *
Pragma: no-cache
X-Syncthing-Id: IDIDIID-IDIDID-IDIDID-IDIDID-IDIDID-IDIDID-IDIDID-IDIDID
X-Syncthing-Version: v0.12.20
Cache-Control: no-store, no-cache, max-age=0
Date: Sat, 19 Mar 2016 22:40:58 GMT
Content-Length: 0
Content-Type: application/json; charset=utf-8
Expires: Sat, 19 Mar 2016 22:40:58 GMT
Of particular interest is the Content-Length: 0
. I had a quick look through the code but couldn’t see why it might be doing this. I fetch the /rest/system/version
resource milliseconds afterwards and that returns the correct data.
Thanks!
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 82 (82 by maintainers)
Commits related to this issue
- Skip a calculation if timediff is zero (fixes #2854) — committed to AudriusButkevicius/syncthing by AudriusButkevicius 8 years ago
- cmd/syncthing: Skip a calculation if timediff is zero (fixes #2854) — committed to AudriusButkevicius/syncthing by AudriusButkevicius 8 years ago
Sorry, retard editor didn’t save when I pressed S.
Or cpu load or something, I don’t remember off hand what’s in that response. Will check it out tomortow
Here: https://build.syncthing.net/job/syncthing-branch/235/artifact/
Argh I linked you to a bad build… Sorry. I’ll let @calmh tell you what to download 😝