Flyctl reports "invalid leading UTF-8 octet"

As of today, a previously working Fly command fails completely, and not for the first time.

Here is a debug log:

$ flyctl --debug
Error loading config While parsing config: yaml: invalid leading UTF-8 octet
Error: yaml: invalid leading UTF-8 octet
Stacktrace:
goroutine 1 [running]:
runtime/debug.Stack()
	/opt/hostedtoolcache/go/1.24.5/x64/src/runtime/debug/stack.go:26 +0x5e
github.com/superfly/flyctl/internal/cli.printError(0xc0004f05a0, 0xc000111c15, 0xc000290608, {0x2fb5360, 0xc0002ff560})
	/home/runner/work/flyctl/flyctl/internal/cli/cli.go:186 +0x669
github.com/superfly/flyctl/internal/cli.Run({0x2fddb58?, 0xc00056a840?}, 0xc0004f05a0, {0xc00018a070, 0x1, 0x1})
	/home/runner/work/flyctl/flyctl/internal/cli/cli.go:118 +0xb05
main.run()
	/home/runner/work/flyctl/flyctl/main.go:47 +0x150
main.main()
	/home/runner/work/flyctl/flyctl/main.go:26 +0x18

This issue looks similar to:

I have moved my ~/.fly folder out of harm’s way, and reinstalled the command. This has avoided the issue, though I would maintain there is still a bug, per the other thread.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.