fish2018/pansou · error
[ ] 未找到相关结果
Error message
[%s] 未找到相关结果
What it means
No-results error in mikuclub's searchImpl (plugin/mikuclub/mikuclub.go:175): all category fetches completed but zero unique posts were collected. If any category errored, that first error is returned instead; this sentinel fires only when everything succeeded yet found nothing.
Solutions
- 放宽关键词匹配规则
- 该场景返回空列表而非错误,避免上层误判为插件故障
- 结合 firstErr 优先返回真实失败原因
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at plugin/mikuclub/mikuclub.go:175 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of fish2018/pansou@beaa561337 (2026-09-07).
Data as JSON: /api/errors/a921efc53a755718.
Report an issue: GitHub.
Appendix: source
Thrown at plugin/mikuclub/mikuclub.go:175
if firstErr == nil {
firstErr = res.err
}
continue
}
for _, post := range res.posts {
if _, exists := seenPosts[post.ID]; exists {
continue
}
seenPosts[post.ID] = post
allPosts = append(allPosts, post)
}
}
if len(allPosts) == 0 {
if firstErr != nil {
return nil, firstErr
}
return nil, fmt.Errorf("[%s] 未找到相关结果", p.Name())
}
var (
results []model.SearchResult
dwg sync.WaitGroup
mu sync.Mutex
sem = make(chan struct{}, maxConcurrency)
)
for _, post := range allPosts {
post := post
dwg.Add(1)
sem <- struct{}{}
go func() {
defer dwg.Done()
defer func() { <-sem }()
links := p.fetchDetailLinks(client, post.ID, post.PostHref)View on GitHub (pinned to beaa561337)