Skip to main content

Troubleshooting

Overview

This page provides lists known issues and error codes that you may encounter when working with Mavis ID.

Issues and solutions

Gas sponsorship compatibility

Issue

External indexers using go-ethereum may encounter issues with the new Mavis ID sponsored transaction type 0x64 (100), as it's not supported by default in go-ethereum.

Solution

To resolve this issue, use the go-ethereum version from the Ronin protocol instead of the default version by adding the following line to your go.mod file:

replace github.com/ethereum/go-ethereum => github.com/axieinfinity/ronin v1.10.4-0.20240701101813-265bf110a20e

SDK error codes

Error categories

  • User errors: 1xxx
  • Logic errors: 2xxx
  • Server errors: 3xxx
  • Chain errors: 4xxx

1xxx - user errors

Error codeNameMessage
1000WALLET_USER_CANCELUser rejected
1001WALLET_SIGN_NO_PARAMSMissing the message or typed data to sign
1003WALLET_INVALID_PAYLOADInvalid payload
1004AUTHORIZE_INVALID_PAYLOADInvalid payload

2xxx - logic errors

Error codeNameMessage
2000WALLET_UNKNOWN_ERRUnknown error
2001WALLET_NO_ADDRESS_ERRCan't get user address

3xxx - server errors

Error codeNameMessage
3000WALLET_CANT_CREATECan't create the wallet

4xxx - chain errors

Error codeNameMessage
4000WALLET_CANT_SIMULATECan't simulate contract request