Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[droplet-client] 检查 miner 是否设置 peerid #475

Closed
1 of 3 tasks
simlecode opened this issue Oct 23, 2023 · 0 comments · Fixed by #474
Closed
1 of 3 tasks

[droplet-client] 检查 miner 是否设置 peerid #475

simlecode opened this issue Oct 23, 2023 · 0 comments · Fixed by #474
Assignees
Labels
C-enhancement Category: feature enhancement

Comments

@simlecode
Copy link
Collaborator

Droplet / 水滴

  • droplet
  • droplet-client
  • 文档 / docs

Description / 描述

检索的时候如果 miner 没有设置 peer id,将会导致程序 panic。

日志:

2023-10-23T09:45:28.438+0800	ERROR	rpc	[email protected]/handler.go:306	panic in rpc method 'VENUS_MARKET_CLIENT.ClientMinerQueryOffer': runtime error: invalid memory address or nil pointer dereference
github.com/filecoin-project/go-jsonrpc.doCall.func1
	/root/go/pkg/mod/github.com/ipfs-force-community/[email protected]/handler.go:306
runtime.gopanic
	/usr/local/go/src/runtime/panic.go:884
runtime.panicmem
	/usr/local/go/src/runtime/panic.go:260
runtime.sigpanic
	/usr/local/go/src/runtime/signal_unix.go:841
github.com/ipfs-force-community/droplet/v2/client.(*API).ClientMinerQueryOffer
	/opt/droplet/client/client.go:534
reflect.Value.call
	/usr/local/go/src/reflect/value.go:586
reflect.Value.Call
	/usr/local/go/src/reflect/value.go:370
github.com/filecoin-project/venus/venus-shared/api/permission.PermissionProxy.func1
	/root/go/pkg/mod/github.com/filecoin-project/[email protected]/venus-shared/api/permission/permission.go:51
github.com/filecoin-project/venus/venus-shared/api/market/client.(*IMarketClientStruct).ClientMinerQueryOffer
	/root/go/pkg/mod/github.com/filecoin-project/[email protected]/venus-shared/api/market/client/proxy_gen.go:132
reflect.Value.call
	/usr/local/go/src/reflect/value.go:586
reflect.Value.Call
	/usr/local/go/src/reflect/value.go:370
github.com/filecoin-project/go-jsonrpc.doCall
	/root/go/pkg/mod/github.com/ipfs-force-community/[email protected]/handler.go:310
github.com/filecoin-project/go-jsonrpc.(*handler).handle
	/root/go/pkg/mod/github.com/ipfs-force-community/[email protected]/handler.go:435
2023-10-23T09:45:28.438+0800	ERROR	rpc	[email protected]/server.go:99	RPC Error: (error code 0) fatal error calling 'VENUS_MARKET_CLIENT.ClientMinerQueryOffer': panic in rpc method 'VENUS_MARKET_CLIENT.ClientMinerQueryOffer': runtime error: invalid memory address or nil pointer dereference: error code 0
@simlecode simlecode added the C-enhancement Category: feature enhancement label Oct 23, 2023
@simlecode simlecode changed the title [droplet-client] 检查 miner 的 peerid 是否是 nil [droplet-client] 检查 miner 是否设置 peerid Oct 23, 2023
@simlecode simlecode self-assigned this Oct 23, 2023
@simlecode simlecode moved this to In Progress in Venus Team Project(s) Oct 23, 2023
@simlecode simlecode mentioned this issue Oct 23, 2023
5 tasks
@github-project-automation github-project-automation bot moved this from In Progress to Done in Venus Team Project(s) Oct 23, 2023
@Fatman13 Fatman13 added this to the Droplet / 水滴 v2.11.0 milestone Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: feature enhancement
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants