Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

taiko-client /status endpoint runtime error: invalid memory address or nil pointer deference #767

Closed
1 task done
wolfderechter opened this issue Apr 26, 2024 · 8 comments · Fixed by #780
Closed
1 task done

Comments

@wolfderechter
Copy link

Describe the bug

The /status endpoint of provers isn't working anymore this testnet. I tried with multiple prover IP addresses, see image for logs of the error
image

Steps to reproduce

  1. visit <prover IP address>:9876/status
  2. error appears

Spam policy

  • I verify that this issue is NOT SPAM and understand SPAM issues will be closed and reported to GitHub, resulting in ACCOUNT TERMINATION.
@YoGhurt111
Copy link
Contributor

Which way are you running taiko-node? stn or simple-taiko-node?

@YoGhurt111
Copy link
Contributor

You can run a prover with simple-taiko-node.
https://docs.taiko.xyz/guides/enable-a-prover/

@wolfderechter
Copy link
Author

Which way are you running taiko-node? stn or simple-taiko-node?

I haven't been able to run a prover myself, but I think most of the provers are using simple-taiko-node. I need this /status endpoint to setup my prover marketplace.

Try for yourself with any prover IP address or one of the following from the discord:
http://kenz-prover.hekla.kzvn.xyz:9876/status
http://hekla.stonemac65.xyz:9876/status
http://taiko.web3crypt.net:9876/status
http://198.244.201.79:9876/status

Normally you should see a simple json with status values (

// Status represents the current prover server status.
type Status struct {
MinOptimisticTierFee uint64 `json:"minOptimisticTierFee"`
MinSgxTierFee uint64 `json:"minSgxTierFee"`
MinSgxAndZkVMTierFee uint64 `json:"minSgxAndZkVMTierFee"`
MaxExpiry uint64 `json:"maxExpiry"`
Prover string `json:"prover"`
}
// GetStatus handles a query to the current prover server status.
//
// @Summary Get current prover server status
// @ID get-status
// @Accept json
// @Produce json
// @Success 200 {object} Status
// @Router /status [get]
func (s *ProverServer) GetStatus(c echo.Context) error {
return c.JSON(http.StatusOK, &Status{
MinOptimisticTierFee: s.minOptimisticTierFee.Uint64(),
MinSgxTierFee: s.minSgxTierFee.Uint64(),
MinSgxAndZkVMTierFee: s.minSgxAndZkVMTierFee.Uint64(),
MaxExpiry: uint64(s.maxExpiry.Seconds()),
Prover: s.proverAddress.Hex(),
})
}
) but something goes wrong and it errors runtime error: invalid memory address or nil pointer deference (see image)

So this issue should remain open

@YoGhurt111 YoGhurt111 reopened this Apr 29, 2024
@YoGhurt111
Copy link
Contributor

@wolfderechter Thank you for taking the time to report this issue! Your feedback improves the quality of our project. We will fix it later and thanks again for your contribution!

@wolfderechter
Copy link
Author

Thanks for the quick fix, I'm looking forward to see it released in the hekla testnet!

@dionysuzx
Copy link
Contributor

@gitpoap-bot award @wolfderechter

1 similar comment
@dionysuzx
Copy link
Contributor

@gitpoap-bot award @wolfderechter

Copy link

gitpoap-bot bot commented May 3, 2024

Congrats, @wolfderechter ! You've earned a GitPOAP for your contribution!

GitPOAP: 2024 Taiko Contributor:

GitPOAP: 2024 Taiko Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants