Defguard client failing to add an instance #2681
-
|
I have a new Defguard setup where Wireguard clients work fine, even through the Defguard client app, however adding a Defguard instance fails with the "Failed to execute 'close' on 'ReadableStreamDefaultController': Unexpected end of JSON input" error message. I am running Defguard Core v1.6.4, Defguard Gateway v1.6.4, and Defguard Client v1.6.4 (I was originally running the latest version - 1.6.7, but downgraded to version match the rest of the components). I also looked at the Nginx logs (which is set up as a reverse proxy to Defguard core for SSL termination), and could see this request going through when I hit the "Add Instance" button in Defguard client: POST /api/v1/enrollment/start HTTP/1.1status=405body_bytes=0req_body="{\x22token\x22:\x[REDACTED]\x22}"content_type="application/json"headers="tauri-plugin-http/2.5.5|- I could also replicate this behavior through Postman or curl, and the enrollment API endpoint seems to reply that it only supports GET and OPTIONS http requests. I have also tried bypassing Nginx by hitting the endpoint directly with an http request (not https) for the sake of testing, but still got the same results. Has anyone ever encountered this before, or do you have any ideas where to look further please? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
There are two possible errors I see:
|
Beta Was this translation helpful? Give feedback.
There are two possible errors I see:
Proxy (enrollment service) is not deployed or is deployed incorrectly- please check if core in logs connects to proxy (and also in proxy logs for core connections).
If it is then most probably the reverse proxy that terminates Defguard Proxy is misconfigured - thus sending invalid responses to desktop client.