Skip to content

[Bug]: 429 error on Base. Extension not using supplied rpc api  #27099

@Yuripetusko

Description

@Yuripetusko

Describe the bug

When using wagmi with configured private rpc api url and metamask connector, metamask still uses default rpc (perhaps for quering gasFee estimation or doing eth_call simulation), which often leads to 429 error. Shouldn't Metamask use the supplied rpc api here somehow to avoid that?

Expected behavior

Metamask to use supplied rpc api for fee estimation, or handle 429 errors better

Screenshots/Recordings

image

Steps to reproduce

Hard to have consistent reproduction as it is dependant on public base (mainner.base.org) rpc requests load.

  • set up wagmi config and supply custom rpc in transports object
  • send a transaction with writeContract and then open dev console of the metamask extension
  • observe that the rpc used by metamask is a default rpc (mainner.base.org), instead of the configured rpc

Error messages or log output

Error: Non-200 status code: '429'

Detection stage

In production (default)

Version

12.1.3

Build type

None

Browser

Brave, Other (please elaborate in the "Additional Context" section)

Operating system

MacOS

Hardware wallet

No response

Additional context

Both Brave and Arc browsers (both latest chromium)

Severity

  • Quite critical as during busy hours, users can't submit a transaction and blame us, and we have no way to handle it

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    To be triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions