Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

panic: interface conversion error while mirroring packages #2

Open
gojun077 opened this issue Jul 12, 2017 · 0 comments
Open

panic: interface conversion error while mirroring packages #2

gojun077 opened this issue Jul 12, 2017 · 0 comments

Comments

@gojun077
Copy link

gojun077 commented Jul 12, 2017

[15618]  INFO Mirrored: Ziz files=3 sameRev=true worker=10
panic: interface conversion: interface {} is nil, not map[string]interface {}

goroutine 57 [running]:
github.com/gojun077/pocketnpm/npm.getDistributions(0xc5ddd12000, 0x1c09c, 0x1e000, 0x91c100, 0xc5c50751a0)   
        /root/go/src/github.com/gojun077/pocketnpm/npm/utils.go:45 +0x4b9
github.com/gojun077/pocketnpm/npm.(*MirrorWorker).Start.func1(0xc5c62f1640)
        /root/go/src/github.com/gojun077/pocketnpm/npm/worker.go:95 +0x494
created by github.com/gojun077/pocketnpm/npm.(*MirrorWorker).Start
        /root/go/src/github.com/gojun077/pocketnpm/npm/worker.go:125 +0x3f

Currently running go version go1.8.3 linux/amd64 on CentOS 7 kernel 3.10.0-514.el7.x86_64

After crashing and restarting with pocketnpm start I keep getting the error message panic: interface conversion: interface {} is nil, not map[string]interface {}

ssut added a commit that referenced this issue Jul 12, 2017
not sure why this issue is occurring because every doucment SHOULD have
a version list. try to fix this issue with panic-recover statement.
this commit refers to #2.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant