Thanks to visit codestin.com
Credit goes to github.com

Skip to content

panic: interface conversion: interface {} is string, not primitive.D #25

@xtay573269555

Description

@xtay573269555

MongoDB server version: 4.4.14

[root@centos test]# docker images | grep hatchet
simagix/hatchet             latest          bb124fd475a7   5 weeks ago    33.8MB

[root@centos test]# docker run --rm --network=host -v /tmp/test:/home/simagix   simagix/hatchet /hatchet -web /home/simagix/mongod_error.log
2023/06/08 08:49:00 simagix/hatchet v0.4.2-20230502
2023/06/08 08:49:00 using database ./data/hatchet.db
2023/06/08 08:49:00 processing /home/simagix/mongod_error.log
2023/06/08 08:49:00 hatchet name is mongod_error_04522b
2023/06/08 08:49:00 fast counting /home/simagix/mongod_error.log ...
2023/06/08 08:49:00 counted 4 lines
2023/06/08 08:49:00 creating hatchet mongod_error_04522b
panic: interface conversion: interface {} is string, not primitive.D

goroutine 1 [running]:
github.com/simagix/hatchet.AddLegacyString(0xc0000fc960)
        /github.com/simagix/hatchet/legacy.go:114 +0x17ba
github.com/simagix/hatchet.(*Logv2).Analyze(0xc000319950, {0x7ffc0342bf6b, 0x1e})
        /github.com/simagix/hatchet/logv2.go:235 +0xb72
github.com/simagix/hatchet.Run({0xc000098760, 0x1f})
        /github.com/simagix/hatchet/hatchet.go:115 +0x10cc
main.main()
        /github.com/simagix/hatchet/main/hatchet.go:20 +0x10e

Hi, each line in the following mongod_error.log will get the above error when parsing the log. Can you help to find out the reason and fix it ? Thanks a lot.

mongod_error.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions