Closed Patricol closed 3 years ago
I confirmed that putting the c.do(ctx, "POST", c.loginPath
call before the c.do(ctx, "GET", c.statusPath
call in go-unifi
's unifi/unifi.go
fixes the issue.
Created a PR: paultyng/go-unifi/pull/23
Just wanted to chime in and say I am also running into this same issue trying to use with my Dream Machine (firmware 1.8.6). Thank you for putting together a fix @Patricol, and thank you for creating this provider @paultyng !
First, thank you (all) so much for all of your work on this project!
After fiddling with the configuration for ages; I realized that this provider wasn't even trying to login before running
GET /proxy/network/status
; an endpoint which requires authentication in at least this new configuration.Based on the documentation here, I'm assuming that endpoint used to not require authentication.
Some logs: