"Error: This method only supports 0x-prefixed hex strings but input was"

Users have recently reported receiving the error "Error: This method only supports 0x-prefixed hex strings but input was: "

Our developers are aware and working on investigating further.

Workarounds:
Some users mentioned this article was helpful https://metamask.zendesk.com/hc/en-us/articles/360016336611-Revert-Back-to-Earlier-Version-or-Add-Custom-Build-to-Chrome

If you have any additional information on what lead to this error and any other solutions, please help to share.

User Security:
NEVER share your secret seed phrase /recovery phrase! Not even with MetaMask!

12 Likes

Has this been fixed? been stuck with this error for hours trying to approve a token.

7 Likes

we have are patch to download ?

4 Likes

im still waiting on a reply or fix. my token value went from being worth 70 to now just 11 because of this.

4 Likes

This issue has been fixed in v 9.5.2. Please update your extension and this issue should be resolved. Please let us know if you continue to experience this error after updating.

6 Likes

Version 9.5.3 the same error. And I can’t remove this message in any way. “Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given”

4 Likes

Welcome to the Metamask Community, @mrxtraf Can you help to share more details on what were the steps that lead to this error message? Can you help to share a screenshot of the error message?

4 Likes


After try send ETH.
You can get rid of the error by uninstalling the extensions and reinstalling.

Full Text
Сообщение: Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: 0xHi. I need to talk about your address 0x4cdxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx . Contact me to xxxxxxxxxx@gmail.com

Код: Error

Стек:
Error: Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: 0xHi. I need to talk about your address 0x4cdxxxxxxxxxxxxxxxxxxxxxxxxxx . Contact me to xxxxxxxxxxx@gmail.com
at r.toBuffer (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:72:205598)
at T.renderData (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:152:768583)
at T.render (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:152:772907)
at Ya (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-libs.js:75:70734)
at Ka (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-libs.js:75:70529)
at jl (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-libs.js:75:105704)
at bu (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-libs.js:75:90053)
at pu (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-libs.js:75:89978)
at iu (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-libs.js:75:87326)
at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-libs.js:75:45768
at r.unstable_runWithPriority (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-libs.js:172:3472)
at Vo (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-libs.js:75:45477)
at Yo (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-libs.js:75:45713)
at Ko (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-libs.js:75:45648)
at au (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-libs.js:75:87618)
at Object.notify (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-libs.js:93:24588)
at e.t.notifyNestedSubs (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-libs.js:93:24155)
at e.t.handleChangeWrapper (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-libs.js:93:24223)
at b (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:137:63254)
at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:137:57230
at dispatch (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:137:59495)
at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:152:1353815
at Object.dispatch (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:137:57221)
at Object.dispatch (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:137:77703)
at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:152:1359677
at s. (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:1:3953)
at u (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:137:90211)
at s.emit (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:137:90736)
at s.handleResponse (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:1:4155)
at f (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:59:21106)
at s.i.emit (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:59:24092)
at w (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:137:18447)
at _ (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:137:18262)
at s.y.push (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:137:19073)
at t.exports._write (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:113:216651)
at y (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:137:31429)
at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:137:34607
at t.exports.v.write (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:137:34634)
at t.exports.m (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:137:23642)
at f (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:59:21106)
at t.exports.i.emit (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:59:24092)
at w (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:137:18447)
at _ (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:137:18262)
at t.exports.y.push (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:137:19073)
at t.exports._onMessage (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:81:57176)
at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui.js:81:57026

3 Likes

I’m using MetaMask Version 9.6.1
Getting this error message, today 7/7/2021 for importing wallet via private key:

“Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: 0x”

Tôi yêu thích trang wed này

Trang web này rất uy tín