Hi,
I'm writing a plugin which uses cockpit.http to talk to an API server on localhost. On Fedora 28/29 the calls through cockpit.http work fine, but I'm having problems when testing the code against RHEL7.6.
On RHEL I'm seeing this error in the cockpit-bridge Nov 07 17:20:45 rh76-cockpit cockpit-bridge[7698]: https://localhost:5001api/v1/hosts/ceph-1: couldn't read: Error receiving data: Connection reset by peer Nov 07 17:20:45 rh76-cockpit cockpit-bridge[7698]: https://localhost:5001api/v1/hosts/ceph-1: close failed: Error sending data: Broken pipe
The connection reset issue stops my app. It's not caught in a promise .catch method either.
As an example, here's the js code that I'm using
export function deleteHost(hostName, svcToken) { console.log("removing " + hostName + " from the inventory"); let url = "/api/v1/hosts/" + hostName; return http.request({ path: url, body: {}, method: "delete", headers: {Authorization: svcToken} }); }
RHEL 7.6 has cockpit 173 - but the versions of Fedora I've been testing with were 179-181(I think). RHEL has selinux in permissive mode, and the firewall down.
Could anyone shed any light on why the bridge hit's this error on older versions? The API server I'm talking to is the same, and it's responding with a http 200!
Thanks,
Paul C