Richer error messages for 412 responses to signing requests #543
Labels
enhancement
New feature or request
good first issue
Good for newcomers
TeamCerberus
Under active development by TeamCerberus @Consensys
When signing with slashing protected enabled, maySign can return false resulting in a 412 API response:
https://github.com/ConsenSys/web3signer/blob/17d253bd617d5f54a7d7fe1a4b7849aa9922a125/core/src/main/java/tech/pegasys/web3signer/core/service/http/handlers/signing/eth2/Eth2SignForIdentifierHandler.java#L153-L160
The error messaging assumes it is due to slashing protection rules, however there are several reasons: GVR missing, database error, validator being disabled.
Original context: #520 (comment)
The text was updated successfully, but these errors were encountered: