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

Go panic #2

Open
Forma-DM opened this issue Oct 18, 2022 · 0 comments
Open

Go panic #2

Forma-DM opened this issue Oct 18, 2022 · 0 comments

Comments

@Forma-DM
Copy link

When I get an out of office back the program is panicking..

time="2022-10-18T10:50:06Z" level=info msg="Using config file: /app/config.yml"
time="2022-10-18T10:50:06Z" level=info msg="Using Slack sending profile. Will send messages to #phishing"
time="2022-10-18T10:50:06Z" level=info msg="Server listening on 0.0.0.0:9090/webhook"
time="2022-10-18T10:51:33Z" level=warning msg="unknown status:Email Sent"
2022/10/18 10:51:33 http: panic serving 172.17.0.1:42298: runtime error: invalid memory address or nil pointer dereference
goroutine 5 [running]:
net/http.(*conn).serve.func1()
	/usr/local/go/src/net/http/server.go:1850 +0xbf
panic({0x81bd20, 0xbb2c80})
	/usr/local/go/src/runtime/panic.go:890 +0x262
main.handler({0x941328, 0xc000186000}, 0xc00007c400)
	/root/webhook-phish/main.go:80 +0x5f9
net/http.HandlerFunc.ServeHTTP(0x0?, {0x941328?, 0xc000186000?}, 0x6db854?)
	/usr/local/go/src/net/http/server.go:2109 +0x2f
net/http.serverHandler.ServeHTTP({0x9402c8?}, {0x941328, 0xc000186000}, 0xc00007c400)
	/usr/local/go/src/net/http/server.go:2947 +0x30c
net/http.(*conn).serve(0xc0000000a0, {0x9417c0, 0xc000095d10})
	/usr/local/go/src/net/http/server.go:1991 +0x607
created by net/http.(*Server).Serve
	/usr/local/go/src/net/http/server.go:3102 +0x4db
This was referenced Jun 7, 2024
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

No branches or pull requests

1 participant