RESOLVER_PROFILE_UNSUPPORTED
What RESOLVER_PROFILE_UNSUPPORTED means, why UnsupportedError throws it, what to show users and how to fix it in ensforge.
UnsupportedErrorNot retryable
@ensforge/sdk
What happened
The resolver does not support this record type.
What to show users
| Title | Message | Action |
|---|---|---|
| Not supported | This name's resolver does not support this record. | Switch to a resolver that supports it. |
How to fix
Point the name at a resolver that supports it, e.g. the public resolver.
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
| Action | When |
|---|---|
approval.setDelegate | for PermissionedResolvers. |
dns.setRecords | for resolvers without DNS records. |
permission.setRecordAccess | for public keys on a PermissionedResolver. |
record.get | with strict when the resolver supports none of the records. |
record.getAddress | with strict when the resolver supports none of the records. |
record.getAvatar | with strict when the resolver supports none of the records. |
record.getContentHash | with strict when the resolver supports none of the records. |
record.getText | with strict when the resolver supports none of the records. |
record.set | for records the resolver does not support (feature names them), a resolver that keeps its records off-chain or takes no writes, or resolver: "default" on an ENSv2 name. |
resolver.create | without ENSv2, or for records a PermissionedResolver cannot store. |
resolver.getLink | when the resolver is not a PermissionedResolver. |
resolver.link | when the resolver is not a PermissionedResolver. |
resolver.resolve | when the resolver does not answer the call. |
resolver.upgrade | when the resolver or target cannot be upgraded. |
Any write can fail with UnsupportedError: it is part of Errors.WriteError.
Catch it
Errors.hasCode("RESOLVER_PROFILE_UNSUPPORTED") narrows to this error. See Handle errors.
Was this page helpful?