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

Cloudflarebeat throws panic when processing data. #14

Open
kegsofduff opened this issue Mar 13, 2017 · 2 comments
Open

Cloudflarebeat throws panic when processing data. #14

kegsofduff opened this issue Mar 13, 2017 · 2 comments
Assignees

Comments

@kegsofduff
Copy link

Hi,
I built cloudflarebeat on CentOS release 6.8 and have it running connected to Cloudflare. After a few minutes of running it will attempt to process some data and then throw a panic and crash. I'm hoping you can help out.

Thanks,

Debug output:

2017/03/10 20:24:43.076346 event.go:54: DBG  Dropped nil value from event where key=edge.rateLimitRuleId
2017/03/10 20:24:43.076361 event.go:54: DBG  Dropped nil value from event where key=edgeRequest.headers
2017/03/10 20:24:43.076371 event.go:54: DBG  Dropped nil value from event where key=edgeResponse.headers
2017/03/10 20:24:43.076380 event.go:54: DBG  Dropped nil value from event where key=edgeResponse.setCookies
2017/03/10 20:24:43.076396 event.go:54: DBG  Dropped nil value from event where key=clientRequest.cookies
2017/03/10 20:24:43.076409 event.go:54: DBG  Dropped nil value from event where key=cache.headers
2017/03/10 20:24:43.076427 event.go:54: DBG  Dropped nil value from event where key=cache.externalPort
2017/03/10 20:24:43.076439 event.go:54: DBG  Dropped nil value from event where key=cache.cacheFileKey
2017/03/10 20:24:43.076454 event.go:54: DBG  Dropped nil value from event where key=unstable
panic: interface conversion: interface {} is nil, not map[string]interface {}

goroutine 51 [running]:
panic(0xa2a0e0, 0xc420158780)
    /home/kegsofduff/repos/go/src/runtime/panic.go:500 +0x1a1
github.com/hartfordfive/cloudflarebeat/cloudflare.BuildMapStr(0xc4205b49c0, 0x129f)
    /home/kegsofduff/repos/go/src/github.com/hartfordfive/cloudflarebeat/cloudflare/utils.go:171 +0x644c
github.com/hartfordfive/cloudflarebeat/cloudflare.(*LogConsumer).PrepareEvents(0xc420223700)
    /home/kegsofduff/repos/go/src/github.com/hartfordfive/cloudflarebeat/cloudflare/logconsumer.go:139 +0x65c
created by github.com/hartfordfive/cloudflarebeat/beater.(*Cloudflarebeat).DownloadAndPublish
    /home/kegsofduff/repos/go/src/github.com/hartfordfive/cloudflarebeat/beater/cloudflarebeat.go:142 +0xc1
@hartfordfive
Copy link
Owner

hartfordfive commented Mar 13, 2017

Hi @kegsofduff,

Which tag/commit SHA are you using?

@hartfordfive hartfordfive self-assigned this Mar 30, 2017
@hartfordfive
Copy link
Owner

Hi @kegsofduff, any updates on this?

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