Custom revert errors — when they fire and how to fix them.

View on GitHub

Errors

When a contract call reverts, the revert data carries one of these custom errors. Use this table to diagnose.

ErrorWhenFix
EmptyInfoURI()You called register() with an empty string for infoURIPass a non-empty URL
UriTooLong()Your infoURI is longer than 256 bytesShorten the URL — use IPFS CID or short hosting
NotRegistered()You called unregister() from an address that has never registeredRegister first, or check you're using the right wallet
NotActive()You called unregister() on a record that's already deactivatedAlready inactive — no action needed
OffsetOutOfBounds()You called getParticipants(offset, limit) with offset past the index lengthUse participantCount() to bound your offset
IdentityNotRegistered()You called register() with participantType == 0 (Provider) from an address not in the configured IIdentityRegistryConnect from your FSP identity wallet, not a delegation or signing wallet