Skip to content

panic error on indexer #41

@ghost

Description

Hi,

Hope you are all well !

If I index several websites, after some point I have this error:

Depth: 1 - Queued: 3977
panic: runtime error: index out of range [1] with length 0

goroutine 27 [running]:
github.com/nwihardjo/SpaghettiSearch/indexer.Index(0xc00c3e0000, 0xc52be, 0xffe00, 0xc0000f4070, 0x7ffe1107d10f, 0x1d, 0x0, 0xed38f5121, 0x0, 0x0, ...)
	/home/ubuntu/x0rzkov/SpaghettiSearch/indexer/indexer.go:44 +0x3261
github.com/nwihardjo/SpaghettiSearch/crawler.Crawl(0xc0000926e0, 0x0, 0x0, 0x7ffe1107d10f, 0x1d, 0xc00000fb20, 0xc0001bee70, 0xc000024ce0, 0xc00000fb00, 0xc000026870, ...)
	/home/ubuntu/x0rzkov/SpaghettiSearch/crawler/crawler.go:176 +0xb68
created by main.main
	/home/ubuntu/x0rzkov/SpaghettiSearch/cmd/crawl/start_crawl.go:144 +0xdb3

Is there something wrong with badger ? How to fix it ? Any ideas ?

Cheers,
X

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