,"pkg":"cmd","provider":"fotoch","time":"2023-11-23T09:56:23Z"}
{"elastic-host":"http://elasticsearch-master-headless:9200","elastic-index":"metagrid","level":"info","msg":"Connect to elastic search","pkg":"elasticsearch","time":"2023-11-23T09:56:23Z"}
{"level":"info","msg":"Start the crawling loop","pkg":"collect","time":"2023-11-23T09:56:23Z"}
{"level":"info","msg":"Size of the queue is 1","time":"2023-11-23T09:56:23Z"}
panic: runtime error: index out of range [1] with length 1
goroutine 43 [running]:
metagrid/pkg/provider/fotoch.(*fotochCollector).OnResponse(0xc000e2fc90?, 0xc000fbb700, {0x1af6a80?, 0x0?}, 0xc000c4aa20?)
/go/src/source.dodis.ch/metagrid-go/metagid-go/pkg/provider/fotoch/fotoch.go:100 +0x8c5
metagrid/collect.(*Collect).onResponse(0xc000fba300, 0xc000fbb700)
/go/src/source.dodis.ch/metagrid-go/metagid-go/collect/collect.go:191 +0x2b7
github.com/gocolly/colly/v2.(*Collector).handleOnResponse(0xc000fbb700?, 0xc000fbb700)
/go/pkg/mod/github.com/gocolly/colly/v2@v2.1.0/colly.go:1035 +0x1c7
github.com/gocolly/colly/v2.(*Collector).fetch(0xc001026000, {0xa?, 0xc000fc07e0?}, {0xc000facfd0, 0x3}, 0x0, {0x12859c0?, 0xc000faf0e0}, 0xd?, 0xc000faf110, ...)
/go/pkg/mod/github.com/gocolly/colly/v2@v2.1.0/colly.go:674 +0x71b
github.com/gocolly/colly/v2.(*Collector).scrape(0xc001026000, {0xc000fb2720, 0x48}, {0xc000facfd0, 0x3}, 0x0, {0x12859c0, 0xc000faf0e0}, 0xc000fab150, 0x0, ...)
/go/pkg/mod/github.com/gocolly/colly/v2@v2.1.0/colly.go:577 +0x5df
github.com/gocolly/colly/v2.(*Request).Do(0xc000fb4480)
/go/pkg/mod/github.com/gocolly/colly/v2@v2.1.0/request.go:156 +0x66
github.com/gocolly/colly/v2/queue.independentRunner(0x0?, 0x0?)
/go/pkg/mod/github.com/gocolly/colly/v2@v2.1.0/queue/queue.go:191 +0x36
created by github.com/gocolly/colly/v2/queue.(*Queue).Run in goroutine 40
/go/pkg/mod/github.com/gocolly/colly/v2@v2.1.0/queue/queue.go:135 +0x125