-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Sentry] Error: Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string w..._Last 30 Days: 69 #14716
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
Comments
This happens everytime a user sets a value on "Hex Data" which is not in the correct hex format.
This should probably be solved by adding some Prompt to the user indicating the reason for the failed tx, and handle the error so it does not appear on Sentry. cannot-convert-string-tobuffer.mp4 |
On April 2024, a user seems to have encountered this again (cf. this Slack thread from @Montoya ). |
This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions. |
We should solve this with input validation on the hex data field during the send flow |
This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions. |
@GustavoRSSilva this sounds like an issue you fixed recently. Can you please confirm? |
@dylanbutler1 Picking this one up, I can still reproduce it |
## **Description** At the moment it is possible to try to send invlid ehx data, just to be blocked on the next step, prevent to move the screen with invalid hex data [](https://codespaces.new/MetaMask/metamask-extension/pull/31040?quickstart=1) ## **Related issues** Fixes: [#14716](#14716) ## **Manual testing steps** 1. Go to sent page 2. add hex data 3. Try to send invalid hex data ## **Screenshots/Recordings** <!-- If applicable, add screenshots and/or recordings to visualize the before and after of your change. --> ### **Before** ### **After**   ## **Pre-merge author checklist** - [x] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Extension Coding Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [x] I've completed the PR template to the best of my ability - [x] I’ve included tests if applicable - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
Sentry Issue: METAMASK-KB37
On April 2024, a user seems to have encountered this again (cf. this Slack thread from @Montoya ).
The text was updated successfully, but these errors were encountered: