Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

401 Unauthorized after waking up the machine from Suspend #18

Open
parMaster opened this issue Jul 25, 2023 · 0 comments
Open

401 Unauthorized after waking up the machine from Suspend #18

parMaster opened this issue Jul 25, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@parMaster
Copy link
Owner

client.Token is not refreshing after wake up??

2023/07/25 23:10:07 [ERROR] failed to get cloud storage report, unable to get cloud storage, status 401, message: .......
>>> stack trace:
main.(*Server).statusHandler(0xc00031c1e0, {0xcf94a0, 0xc0000b6000}, 0x8?)
	/home/gusto/go/src/zoomrs/cmd/service/api.go:137 +0x2ca
net/http.HandlerFunc.ServeHTTP(0xaea140?, {0xcf94a0?, 0xc0000b6000?}, 0xc00002a70c?)
	/usr/local/go/src/net/http/server.go:2122 +0x2f
github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc000072900, {0xcf94a0, 0xc0000b6000}, 0xc000218100)
	/home/gusto/go/src/zoomrs/vendor/github.com/go-chi/chi/v5/mux.go:444 +0x216
net/http.HandlerFunc.ServeHTTP(0x41628a?, {0xcf94a0?, 0xc0000b6000?}, 0xf8?)
	/usr/local/go/src/net/http/server.go:2122 +0x2f
github.com/go-pkgz/rest.Throttle.func1.1({0xcf94a0, 0xc0000b6000}, 0x1056001?)
	/home/gusto/go/src/zoomrs/vendor/github.com/go-pkgz/rest/throttle.go:36 +0xd6
net/http.HandlerFunc.ServeHTTP(0xcf9890?, {0xcf94a0?, 0xc0000b6000?}, 0x1056000?)
	/usr/local/go/src/net/http/server.go:2122 +0x2f
github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc000072900, {0xcf94a0, 0xc0000b6000}, 0xc000218000)
	/home/gusto/go/src/zoomrs/vendor/github.com/go-chi/chi/v5/mux.go:90 +0x310
net/http.serverHandler.ServeHTTP({0xc0000ca3f0?}, {0xcf94a0, 0xc0000b6000}, 0xc000218000)
	/usr/local/go/src/net/http/server.go:2936 +0x316
net/http.(*conn).serve(0xc0003ae000, {0xcf9938, 0xc000332630})
	/usr/local/go/src/net/http/server.go:1995 +0x612
created by net/http.(*Server).Serve
	/usr/local/go/src/net/http/server.go:3089 +0x5ed


@parMaster parMaster added the bug Something isn't working label Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant