We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
--debug-report
A user reported this issue in #3010.
When running a CLI command with --debug-report flag it throws an error:
$ infracost breakdown --path=examples/terraform --debug-report
[ 2024-04-10T10:32:30+01:00 DBG IsCloudEnabled inferred from Config.EnabledDashboard is_cloud_enabled=false, �[91mError:�[0m An unexpected error occurred bytes.Buffer.WriteTo: invalid Write count goroutine 1 [running]: runtime/debug.Stack() /opt/hostedtoolcache/go/1.22.1/x64/src/runtime/debug/stack.go:24 +0x5e main.Run.func1() /home/runner/work/infracost/infracost/cmd/infracost/main.go:78 +0xb4 panic({0x29e26e0?, 0x3b30380?}) /opt/hostedtoolcache/go/1.22.1/x64/src/runtime/panic.go:770 +0x132 bytes.(*Buffer).WriteTo(0xc0004c9d70, {0x3b36100?, 0xc000099010?}) /opt/hostedtoolcache/go/1.22.1/x64/src/bytes/buffer.go:263 +0xee github.com/rs/zerolog.ConsoleWriter.Write({{0x3b36100, 0xc000099010}, 0x1, {0x33dac7f, 0x19}, {0xc00024f080, 0x4, 0x4}, {0x0, 0x0, ...}, ...}, ...) /home/runner/go/pkg/mod/github.com/rs/[email protected]/console.go:145 +0x5c5 github.com/rs/zerolog.LevelWriterAdapter.WriteLevel(...) /home/runner/go/pkg/mod/github.com/rs/[email protected]/writer.go:27 github.com/rs/zerolog.(*Event).write(0xc000499a40) /home/runner/go/pkg/mod/github.com/rs/[email protected]/event.go:80 +0x103 github.com/rs/zerolog.(*Event).msg(0xc000499a40, {0x347255b, 0x34}) /home/runner/go/pkg/mod/github.com/rs/[email protected]/event.go:151 +0x21a github.com/rs/zerolog.(*Event).Msg(...) /home/runner/go/pkg/mod/github.com/rs/[email protected]/event.go:110 github.com/infracost/infracost/internal/config.(*RunContext).IsCloudEnabled(0xc0001209a0) /home/runner/work/infracost/infracost/internal/config/run_context.go:267 +0xfe main.loadGlobalFlags(0xc0001209a0, 0xc000554008) /home/runner/work/infracost/infracost/cmd/infracost/main.go:358 +0x9c main.newRootCmd.func1(0xc000554008, {0x3396273?, 0x4?, 0x3396233?}) /home/runner/work/infracost/infracost/cmd/infracost/main.go:156 +0x2b7 github.com/spf13/cobra.(*Command).execute(0xc000554008, {0xc0004c9ce0, 0x3, 0x3}) /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:835 +0x5c3 github.com/spf13/cobra.(*Command).ExecuteC(0xc0004fc588) /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x38d github.com/spf13/cobra.(*Command).Execute(...) /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:902 main.Run(0x0, 0x0) /home/runner/work/infracost/infracost/cmd/infracost/main.go:96 +0x186 main.main() /home/runner/work/infracost/infracost/cmd/infracost/main.go:40 +0x1f4 Environment: Infracost v0.10.35+v0.10.35-v0.10.35 An unexpected error occurred. We've been notified of it and will investigate it soon. If you would like to follow-up, please copy the above output and create an issue at: �[4;1mhttps://github.com/infracost/infracost/issues/new�[0m, 2024-04-10T10:32:30+01:00 DBG 'POST' request to '/event' using trace_id: '3c470c26-a602-4ccc-a8c3-dcfde181b654',
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
A user reported this issue in #3010.
When running a CLI command with
--debug-report
flag it throws an error:The text was updated successfully, but these errors were encountered: