MetaMask / MetaMask/metamask-extension

[Bug]: eth_getencryptionpublickey fails on v13.4.0

Open
#36,625 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bugs---Low-Priority external-contributor INVALID-ISSUE-TEMPLATE regression-prod-13.4.0 Sev3-low team-confirmations type-bug
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

**Describe the bug**

eth_getencryptionpublickey Fails on the latest version with
```
Message: Cannot read properties of null (reading 'toLowerCase')

Code: TypeError

Stack:

TypeError: Cannot read properties of null (reading 'toLowerCase')
at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-0.js:1:557249
at zu (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-8.js:1:200866)
at r.unstable_runWithPriority (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-8.js:1:220291)
at Vo (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-8.js:1:141687)
at Du (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-8.js:1:200338)
at wu (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-8.js:1:191916)
at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-8.js:1:141909
at r.unstable_runWithPriority (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-8.js:1:220291)
at Vo (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-8.js:1:141687)
at Qo (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-8.js:1:141855)
at Yo (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-8.js:1:141790)
at mu (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-8.js:1:189405)
at Object.enqueueSetState (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-8.js:1:145763)
at y.setState (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-8.js:1:279780)
at m.loadImage (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-7.js:1:336012)
```

This can be confirmed here https://docs.metamask.io/wallet/reference/json-rpc-methods/eth_getencryptionpublickey

**Steps to reproduce**

1. Go to https://docs.metamask.io/wallet/reference/json-rpc-methods/eth_getencryptionpublickey
2. Try to execute query

**Error messages or log output**

```shell

```

**Detection stage**

In production (default)

**Version**

13.4.0

**Build type**

None

**Browser**

Chrome

**Operating system**

MacOS

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository file, test, or entry point is named. Start by reproducing the request from the linked eth_getencryptionpublickey documentation in Chrome on macOS with version 13.4.0, then locate the extension code handling this JSON-RPC method. Done means the request completes without the reported null toLowerCase error and the relevant regression is covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.