Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getAvatar() throws STRINGPREP_CONTAINS_UNASSIGNED #2733

Closed
szanuje opened this issue Feb 22, 2022 · 1 comment
Closed

getAvatar() throws STRINGPREP_CONTAINS_UNASSIGNED #2733

szanuje opened this issue Feb 22, 2022 · 1 comment
Labels
duplicate Duplicate of another issue.

Comments

@szanuje
Copy link

szanuje commented Feb 22, 2022

This code:

  const provider = new ethers.providers.JsonRpcProvider(
    `https://eth-mainnet.alchemyapi.io/v2/${alchemyApiKey}`,
  );

  return await provider.getAvatar(domainName);

throws this error message:
STRINGPREP_CONTAINS_UNASSIGNED
for non-ascii ENS domain names, e.g 🐶doge.eth

Is it a bug or I'm missing something?

@szanuje szanuje added the investigate Under investigation and may be a bug. label Feb 22, 2022
@ricmoo
Copy link
Member

ricmoo commented Feb 22, 2022

This is a known issue. There is still work being done by the ENS team to determine the safest way to normalize joiners and such within Unicode names.

You can follow along with the progress on this via issue #2376, so I’ll close this as a duplicate. :)

@ricmoo ricmoo closed this as completed Feb 22, 2022
@ricmoo ricmoo added duplicate Duplicate of another issue. and removed investigate Under investigation and may be a bug. labels Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Duplicate of another issue.
Projects
None yet
Development

No branches or pull requests

2 participants