Skip to content
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

bug: metamask connector on mobile cannot open page because address is invalid #4292

Closed
1 task done
ques122 opened this issue Sep 24, 2024 · 4 comments
Closed
1 task done
Labels
Needs Reproduction Misc: Needs Reproduction

Comments

@ques122
Copy link

ques122 commented Sep 24, 2024

Check existing issues

Describe the bug

Currently, I’m encountering an error when using the MetaMask connector on mobile. It used to work fine, but recently the error started occurring.

Condition: MetaMask wallet is not installed on the mobile device.

Action: Click the button to connect to MetaMask.

Actual:

  • On Safari, an error popup says: "Safari cannot open the page because the address is invalid."
  • On Chrome, a warning appears about navigation.

Expected: Redirect to the MetaMask App Store.

Please check it for me, thanks!

Link to Minimal Reproducible Example

https://stackblitz.com/edit/new-wagmi-h3iabj?file=src%2Fwagmi.ts

Steps To Reproduce

No response

What Wagmi package(s) are you using?

wagmi, @wagmi/connectors

Wagmi Package(s) Version(s)

2.12.13

Viem Version

2.x

TypeScript Version

^5.3.2

Anything else?

No response

@wevm wevm deleted a comment Sep 24, 2024
@tmm tmm added the Needs Reproduction Misc: Needs Reproduction label Sep 24, 2024
Copy link
Contributor

Hello @ques122.

Please provide a minimal reproduction using StackBlitz, TypeScript Playground (for type issues), or a separate minimal GitHub repository.

Minimal reproductions are required as they save us a lot of time reproducing your config/environment and issue, and allow us to help you faster.

Once a minimal reproduction is added, a team member will confirm it works, then re-open the issue.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 24, 2024
@ques122
Copy link
Author

ques122 commented Sep 25, 2024

Hi @tmm,
I have added a minimal reproduction. Please check it for me, thanks!

@tmm
Copy link
Member

tmm commented Sep 27, 2024

Best to track in this upstream issue

MetaMask/metamask-sdk#1042

Copy link
Contributor

This issue has been locked since it has been closed for more than 14 days.

If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Wagmi version. If you have any questions or comments you can create a new discussion thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs Reproduction Misc: Needs Reproduction
Projects
None yet
Development

No branches or pull requests

2 participants