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

The generate command crashes for hangouts service #134

Closed
JonasPf opened this issue Feb 3, 2021 · 0 comments · Fixed by #136
Closed

The generate command crashes for hangouts service #134

JonasPf opened this issue Feb 3, 2021 · 0 comments · Fixed by #136

Comments

@JonasPf
Copy link
Contributor

JonasPf commented Feb 3, 2021

On current master:

$ go run cli/main.go generate hangouts
Generating URL for hangouts using basic generator
Enter the configuration values as prompted

panic: interface conversion: *hangouts.Config is not types.ServiceConfig: missing method GetURL

goroutine 1 [running]:
github.com/containrrr/shoutrrr/pkg/format.GetServiceConfigFormat(0x169c820, 0xc00000ea60, 0x0, 0x0, 0x0, 0x1, 0x0)
	/Users/jonas/projects/blockdaemon/shoutrrr-upstream/pkg/format/formatter.go:38 +0x17e
github.com/containrrr/shoutrrr/pkg/generators/basic.(*Generator).Generate(0x19b14a8, 0x169c820, 0xc00000ea60, 0xc0001a0120, 0xc000075590, 0x1, 0x1, 0x0, 0xc000199cc8, 0x13f6a86, ...)
	/Users/jonas/projects/blockdaemon/shoutrrr-upstream/pkg/generators/basic/basic.go:23 +0xe5
github.com/containrrr/shoutrrr/cli/cmd/generate.Run(0x1977240, 0xc000075590, 0x1, 0x1)
	/Users/jonas/projects/blockdaemon/shoutrrr-upstream/cli/cmd/generate/generate.go:119 +0x774
github.com/spf13/cobra.(*Command).execute(0x1977240, 0xc000075570, 0x1, 0x1, 0x1977240, 0xc000075570)
	/Users/jonas/go/pkg/mod/github.com/spf13/[email protected]/command.go:842 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0x1977a20, 0x0, 0x0, 0xc000096058)
	/Users/jonas/go/pkg/mod/github.com/spf13/[email protected]/command.go:943 +0x336
github.com/spf13/cobra.(*Command).Execute(...)
	/Users/jonas/go/pkg/mod/github.com/spf13/[email protected]/command.go:883
main.main()
	/Users/jonas/projects/blockdaemon/shoutrrr-upstream/cli/main.go:26 +0x2d
exit status 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant