Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Push failing with Invalid Key

A topic by null theorem created Dec 18, 2020 Views: 1,343 Replies: 3
Viewing posts 1 to 3
(1 edit)

Hello,

I'm having some trouble with pushing a new build when one already exists. The first time I pushed a build, it worked fine, but the second time it failed with the error:

searching for parent build signature: opening signature: htfs.Open (initial request): in conn.Connect, non-retriable error: in conn.tryConnect, got HTTP non-2XX: api.itch.io: HTTP 403: {"errors":["invalid key"]}

If I delete the build through the website, I can push again without a problem, but then the next time it'll fail again with the same error. Given the first part of the error message, I'm guessing it has something to do with comparing the previous build to the new one using a signature. Because the push works when I delete the build through the website, I'm confident that the "invalid key" referred to by the error message is not the API key.

I'm using v15.20.0 of butler on Windows using the command:

butler.exe push --userversion=2020.12.18.87W C:\DevOpsAgent\_work\r4\a\WebGL\webgl\ null-theorem/ftv:web

Adding -v dumps a fair bit of stack trace, here's the top but let me know if more would be helpful:

∙ For channel `web`: last build is 335424, downloading its signature
api.itch.io: HTTP 403: {"errors":["invalid key"]}
in conn.tryConnect, got HTTP non-2XX
github.com/itchio/httpkit/htfs.(*conn).tryConnect
C:/Users/Administrator/go/pkg/mod/github.com/itchio/httpkit@v0.0.0-20200618110940-5044e418b971/htfs/conn.go:159
github.com/itchio/httpkit/htfs.(*conn).Connect
C:/Users/Administrator/go/pkg/mod/github.com/itchio/httpkit@v0.0.0-20200618110940-5044e418b971/htfs/conn.go:56
github.com/itchio/httpkit/htfs.(*File).borrowConn
C:/Users/Administrator/go/pkg/mod/github.com/itchio/httpkit@v0.0.0-20200618110940-5044e418b971/htfs/file.go:336
github.com/itchio/httpkit/htfs.Open
C:/Users/Administrator/go/pkg/mod/github.com/itchio/httpkit@v0.0.0-20200618110940-5044e418b971/htfs/file.go:180
github.com/itchio/httpkit/eos.realOpen
C:/Users/Administrator/go/pkg/mod/github.com/itchio/httpkit@v0.0.0-20200618110940-5044e418b971/eos/eos.go:137
github.com/itchio/httpkit/eos.Open
C:/Users/Administrator/go/pkg/mod/github.com/itchio/httpkit@v0.0.0-20200618110940-5044e418b971/eos/eos.go:67
github.com/itchio/butler/cmd/push.Do.func2
C:/msys64/home/amos/gitlab/builds/v4hXCzbZ/1/itchio/butler/cmd/push/push.go:156
github.com/itchio/butler/cmd/push.Do
C:/msys64/home/amos/gitlab/builds/v4hXCzbZ/1/itchio/butler/cmd/push/push.go:225
github.com/itchio/butler/cmd/push.do
C:/msys64/home/amos/gitlab/builds/v4hXCzbZ/1/itchio/butler/cmd/push/push.go:91
main.doMain
C:/msys64/home/amos/gitlab/builds/v4hXCzbZ/1/itchio/butler/main.go:256
main.main
C:/msys64/home/amos/gitlab/builds/v4hXCzbZ/1/itchio/butler/main.go:132
runtime.main
c:/go/src/runtime/proc.go:203
runtime.goexit
c:/go/src/runtime/asm_amd64.s:1373
in conn.Connect, non-retriable error

Any updates here? I'm having the same exact issue

(+1)

Found this issue on github, and the error does in fact have to do with the API key. Turns out if there's any leading or trailing whitespace in the API key being used, this error will crop up when pushing for a second time, despite the initial push working fine.

Scratched my head for several days with the same issue and found out this was the reason. When pasting to github secrets field, it keeps adding trailing whitespaces for unknown reasons. Remove them and all fixed. Thanks a lot for sharing this @capnbootberry!