Just to put it out there, this is a report about an abnormality that I ran into. I’m using Ansible to install and configure Syncthing. I’m aware that it’s not supported in this manner. But, it is an abnormality and I think you’d like to know about them, even if they aren’t supported.
My Ansible plays were starting to fail on POSTing a new configuration to rest/system/config. I was able to GET from the address, so the API itself is working as expected.
For brevity, I’ll post the screenshot at the bottom here and continue with the narrative. The error I was receiving was a connection failure. I had run into these before when I didn’t have my JSON quite right, so I double checked it. It checked out fine.
I looked closer at the GET data and the changes I had made were there. Which means that the POST is going through and processed, but nothing is being returned that Ansible can read, which throws the error below.
I confirmed this by manually putting in the data in a command line curl request and received no response after the request was sent.
I rolled back my installs to explicitly require 1.2.1 and my plays run correctly.
Again, I know that this isn’t something you support and I’m not asking for support. This is a heads up.