tkashkin / GameHub

All your games in one place
https://tkashkin.github.io/projects/gamehub
GNU General Public License v3.0
2.25k stars 128 forks source link

Client refuses to start when it can't connect to the internet #376

Open brendenhoffman opened 4 years ago

brendenhoffman commented 4 years ago

This seems to be the fault of the itchi client, but Gamehub should not wait on it to load the rest of the games. Client only shows a loading icon with no additional buttons or functions. I was using the client and adding artwork in my free time at work where some of the domains are blocked, but trying to launch the client with no connection seems to have the same effect.

Here is the error message in the terminal: [WARN] [ButlerClient: err 2] {"id":2,"error":{"code":9000,"message":"There is no Internet connection","data":{"butlerVersion":"v15.17.0, built on Aug 13 2019 @ 13:34:11, ref 94c194ef1888b0363e399983355bf981dee38ff8","stack":"Get https://api.itch.io/profile: read tcp 172.16.0.53:44676-\u003e173.255.250.29:443: read: connection reset by peer\ngithub.com/itchio/go-itchio.(*Client).GetResponse\n\t/root/go/pkg/mod/github.com/itchio/go-itchio@v0.0.0-20190715130917-ff003c6e3102/http_helpers.go:49\ngithub.com/itchio/go-itchio.(*Query).Get\n\t/root/go/pkg/mod/github.com/itchio/go-itchio@v0.0.0-20190715130917-ff003c6e3102/query.go:103\ngithub.com/itchio/go-itchio.(*Client).GetProfile\n\t/root/go/pkg/mod/github.com/itchio/go-itchio@v0.0.0-20190715130917-ff003c6e3102/endpoints_profile.go:16\ngithub.com/itchio/butler/endpoints/profile.LoginWithAPIKey\n\t/builds/itchio/butler/endpoints/profile/profile.go:151\ngithub.com/itchio/butler/butlerd/messages.(*ProfileLoginWithAPIKeyType).Register.func1\n\t/builds/itchio/butler/butlerd/messages/messages.go:598\ngithub.com/itchio/butler/butlerd.(*Router).Dispatch.func2\n\t/builds/itchio/butler/butlerd/router.go:310\ngithub.com/itchio/butler/butlerd.(*Router).Dispatch\n\t/builds/itchio/butler/butlerd/router.go:319\ngithub.com/itchio/butler/cmd/daemon.(*handler).Handle\n\t/builds/itchio/butler/cmd/daemon/daemon.go:115\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1337\ngithub.com/itchio/butler/endpoints/profile.LoginWithAPIKey\n\t/builds/itchio/butler/endpoints/profile/profile.go:153\ngithub.com/itchio/butler/butlerd/messages.(*ProfileLoginWithAPIKeyType).Register.func1\n\t/builds/itchio/butler/butlerd/messages/messages.go:598\ngithub.com/itchio/butler/butlerd.(*Router).Dispatch.func2\n\t/builds/itchio/butler/butlerd/router.go:310\ngithub.com/itchio/butler/butlerd.(*Router).Dispatch\n\t/builds/itchio/butler/butlerd/router.go:319\ngithub.com/itchio/butler/cmd/daemon.(*handler).Handle\n\t/builds/itchio/butler/cmd/daemon/daemon.go:115\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1337"}},"jsonrpc":"2.0"}

I am on Manjaro with the 0.16.0.1-1 aur version currently.

demonich commented 4 years ago

Same thing. [WARN] [ButlerClient: err 2] {"jsonrpc":"2.0","id":2,"error":{"code":9000,"message":"There is no Internet connection","data":{"butlerVersion":"v15.20.0, built on Aug 28 2020 @ 15:35:05, ref b3c579dc115e3326e9a283a10f9b6712e017a3b7","stack":"Get \"https://api.itch.io/profile\": dial tcp: lookup api.itch.io: Temporary failure in name resolution\ngithub.com/itchio/go-itchio.(*Client).GetResponse\n\t/root/go/pkg/mod/github.com/itchio/go-itchio@v0.0.0-20200826214038-a03acb9221a2/http_helpers.go:49\ngithub.com/itchio/go-itchio.(*Query).Get\n\t/root/go/pkg/mod/github.com/itchio/go-itchio@v0.0.0-20200826214038-a03acb9221a2/query.go:103\ngithub.com/itchio/go-itchio.(*Client).GetProfile\n\t/root/go/pkg/mod/github.com/itchio/go-itchio@v0.0.0-20200826214038-a03acb9221a2/endpoints_profile.go:16\ngithub.com/itchio/butler/endpoints/profile.LoginWithAPIKey\n\t/builds/itchio/butler/endpoints/profile/profile.go:152\ngithub.com/itchio/butler/butlerd/messages.(*ProfileLoginWithAPIKeyType).Register.func1\n\t/builds/itchio/butler/butlerd/messages/messages.go:606\ngithub.com/itchio/butler/butlerd.(*Router).HandleRequest.func2\n\t/builds/itchio/butler/butlerd/router.go:306\ngithub.com/itchio/butler/butlerd.(*Router).HandleRequest\n\t/builds/itchio/butler/butlerd/router.go:315\ngithub.com/itchio/butler/butlerd.(*gatedHandler).HandleRequest\n\t/builds/itchio/butler/butlerd/butlerd.go:159\ngithub.com/itchio/butler/butlerd/jsonrpc2.(*connImpl).handleIncomingMessage.func1\n\t/builds/itchio/butler/butlerd/jsonrpc2/jsonrpc2.go:250\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1373\ngithub.com/itchio/butler/endpoints/profile.LoginWithAPIKey\n\t/builds/itchio/butler/endpoints/profile/profile.go:154\ngithub.com/itchio/butler/butlerd/messages.(*ProfileLoginWithAPIKeyType).Register.func1\n\t/builds/itchio/butler/butlerd/messages/messages.go:606\ngithub.com/itchio/butler/butlerd.(*Router).HandleRequest.func2\n\t/builds/itchio/butler/butlerd/router.go:306\ngithub.com/itchio/butler/butlerd.(*Router).HandleRequest\n\t/builds/itchio/butler/butlerd/router.go:315\ngithub.com/itchio/butler/butlerd.(*gatedHandler).HandleRequest\n\t/builds/itchio/butler/butlerd/butlerd.go:159\ngithub.com/itchio/butler/butlerd/jsonrpc2.(*connImpl).handleIncomingMessage.func1\n\t/builds/itchio/butler/butlerd/jsonrpc2/jsonrpc2.go:250\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1373"}}} Снимок экрана от 2020-11-27 11-25-55 UPD: GameHub works if you disable itch.io in the settings, but this is not a solution.