UTF8 Replacement bytes "EFBFBD" in Revert error reason
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- backend-api-design
Research direction
Start by tracing how revert data moves through the provider, including the ethers fetchJson path and the Flashbots Relay response. Determine where EFBFBD replaces the original byte, then verify that the revert payload remains valid ABI-encoded data with the expected selector and two uints.
Written by the indexing model from the issue text.
Description
Unable to decode the revert error from Simulation (and probably from real txs too).
What I've noticed when I decode the revert string to HEX, is that it contains a lot of "EFBFBD" bytes:

"EFBFBD" is used as a standard UTF8 replacement bytes if the source byte cannot be encoded into UTF8:
https://blog.gdssecurity.com/labs/2015/2/18/when-efbfbd-and-friends-come-knocking-observations-of-byte-a.html
As you can see it couldn't encode 9C.
If you replace EFBFBD with any random byte (like "FF") - then you have a proper length ABI-Encoded custom error (with 4 bytes in the beginning, and 32+32 bytes two uints after).
I'm not sure where this replacement happens - on the Ethers side (in fetchJson they use toUTF8 encoding) or on Flashbots Relay side.
But if it happens on Ether's side - maybe we can use another connector?
- Dominant language
- TypeScript
- Stars
- 568
- Forks
- 212
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from flashbots/ethers-provider-flashbots-bundle
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
flashbots/ethers-provider-flashbots-bundle#131 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
flashbots/ethers-provider-flashbots-bundle#128 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
flashbots/ethers-provider-flashbots-bundle#127 · 3 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
flashbots/ethers-provider-flashbots-bundle#124 · 1 comment ·
All issues in flashbots/ethers-provider-flashbots-bundle
Similar issues
-
ble-needs-fable-review bug mobile priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
ColeMurray/background-agents#2305 ·
Maintainers usually reply within 1 day
-
bug from-studio
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
esengine/DeepSeek-Reasonix#12355 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
oblien/openship#1086 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day