Open jarvismeier opened 5 months ago
I'm seeing the same after updating my controller to 8.1
I have my unifi controller behind an nginx proxy, so I was able to work around this by adding this to the server
section:
merge_slashes off;
rewrite (.*?)//+(.*) $1/$2 permanent;
My understanding is that merge_slashes
only allows nginx to treat multiple slashes as one, but it doesn't actually rewrite anything, so they'd still get passed through the proxy as-is. The rewrite doesn't work with it still on, I'm guessing because the regexp doesn't pick up the multiple slashes because of that merge_slashes
behavior.
Describe The Bug: Since updating to Unifi 8.1.x the plugin errors out when attempting to connect/query the api path. Looking in the logs there is an extra forward slash which is generating the 404 error ie: https://10.0.1.xxx:8443//v2/api/fingerprint_devices/0
To Reproduce: Update self hosted Unifi to 8.1
Expected behavior: plugin should not retrieve 404 errors when contacting the API
Logs:
Plugin Config:
Screenshots:
Environment: