question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unexpected `STRINGPREP_CONTAINS_UNASSIGNED` error

See original GitHub issue

As reported in https://github.com/Uniswap/interface/issues/2876, users with emojis in their ENS names are experiencing crashes due to a STRINGPREP_CONTAINS_UNASSIGNED error being thrown in #namehash. While this is solvable for us, perhaps it points to some underlying issue in ethers, hence the issue.

The following code errors, as tested here: https://github.com/Uniswap/interface/pull/2925/files#diff-5505dde3421656b51959add7972d69203d6faa0dfc3f05a7835c455799f2fac6R9.

import { namehash } from '@ethersproject/hash'

namehash('🤔')

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:7
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

5reactions
baptistegrevecommented, Feb 10, 2022

Hey! What is the recommended workaround for this?

1reaction
Arachnidcommented, Dec 5, 2021

Encountered the issue as well, seems like ens has switched from ascii to unicode recently, see: ensdomains/eth-ens-namehash@f62f351 from:

function normalize(name) {
  return name ? uts46.toAscii(name, {useStd3ASCII: true, transitional: false}) : name
}

to:

function normalize(name) {
  return name ? uts46.toUnicode(name, {useStd3ASCII: true, transitional: false}) : name
}

ENS has always used unicode, but the app was mistakenly using the wrong function to normalise names for a short while.

Read more comments on GitHub >

github_iconTop Results From Across the Web

R "Error: unexpected '}' in "}" [duplicate] - Stack Overflow
I'm trying to write a loop to get rid of these (Null Value) entries and I keep getting an error "Error: unexpected '}'...
Read more >
main.cs(20,2): error CS1525: Unexpected symbol 'string'
It says this: main.cs(20,2): error CS1525: Unexpected symbol 'string' ... code is NEAR but not AT the location the IDE flags as the...
Read more >
(NEW FIX) Roblox Error Code 268 "Kicked Due to Unexpected ...
(NEW FIX) Roblox Error Code 268 "Kicked Due to Unexpected Client Behavior"Apply these 2 best 100% Working solutions to fix Error code 268...
Read more >
Fix Roblox Error Code - 268 | You Have Been Kicked Due To ...
How to Fix Roblox Error Code - 268 | You Have Been Kicked Due To Unexpected Client Behavior in Windows 2022Fix Roblox (...
Read more >
Solved: Error:Unexpected character '' (code 65279 / 0xfef...
Solved: Hi All, I'm using Windows C# client as below version: Somehow I got random / intermittent error popped up: Error:Unexpected ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found