wagmi icon indicating copy to clipboard operation
wagmi copied to clipboard

bug: Connector not found

Open kelokchan opened this issue 2 years ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Package Version

0.6.2

Current Behavior

I'm getting Connector not found error everytime I try to connect to metamask within the Metamask App browser on Android

Expected Behavior

Expect connect dialog to show up in metamask

Steps To Reproduce

  • Open Metamask App on Android
  • Visit the codesandbox and press metamask button

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

https://codesandbox.io/s/wagmi-test-forked-v5qi39

Anything else?

No response

kelokchan avatar Aug 11 '22 15:08 kelokchan

Also seeing this issue iOS, MetaMask 5.5.0

franzwarning avatar Aug 16 '22 20:08 franzwarning

hey @kelokchan and @franzwarning I'm wondering if you handled this issue already. Did you?

I'm facing the same problem and as far as I can see, I think we will need to use something like rainbowkit

adrianotadao avatar Sep 22 '22 12:09 adrianotadao

It has something to do with this issue

kelokchan avatar Sep 29 '22 05:09 kelokchan

Opening the example (https://v5qi39.csb.app/) (note: not in the sandbox) worked on my MetaMask Mobile (Android).

antonio-ivanovski avatar Oct 27 '22 09:10 antonio-ivanovski

Same issue here,

I have tried the link above on my android device it shows Metamask (unsupported) and Injected (unsupported).

phone is on android 13.

I also tested my nextjs app locally, and and running "wagmi": "^0.7.5".

Same behavior, when i click metamask or injected nothing happens. However, If I choose walletConnect and click connect it prompts my metamask mobile, as well as trustwallet.

paOol avatar Nov 03 '22 01:11 paOol

issue exists still https://qomxdj.csb.app/

even after updating to 0.8

paOol avatar Nov 09 '22 18:11 paOol

@paOol I'm not able to reproduce on web or iOS. What version of Android and MM Android app are you using?

tmm avatar Nov 09 '22 22:11 tmm

MM v5.9.1 android 13

paOol avatar Nov 15 '22 15:11 paOol

I can confirm issue, but I've noticed that it works without any problems within MetaMask browser. And it only appears on mobile, desktop is fine.

vildantursic avatar Nov 17 '22 18:11 vildantursic

image Is there a workaround, I want to send a transaction after connecting to the wallet using wagmi and also prompts this error

youthinn avatar May 11 '23 16:05 youthinn

@youthinn this issue is from a while ago. Please open a new issue with a minimal reproducible example.

tmm avatar May 11 '23 17:05 tmm

i got same issue but just logout and login wallet again to solve problem

vinhyenvodoi98 avatar Jun 14 '23 15:06 vinhyenvodoi98

image image

The issue still persists. This error report was captured by Sentry and includes user device information. It appears to be specific to the Android platform.

My temporary workaround is to use window?.ethereum?.enable() to ensure connectivity with the wallet on the Android version of Metamask.

starriv avatar Jun 15 '23 22:06 starriv

There can be several reason : maybe your key is wrong if else statement can be working incorrectly for connection, maybe your installed package's version is wrong.
And maybe u didnt set metamask or connecting wallet etc.

mizginstlm avatar Nov 01 '23 21:11 mizginstlm

Is there any workaround about this issue please? Having the same problem on Android device saying "Connector not found"

ArmmGh avatar Nov 02 '23 22:11 ArmmGh

image image

The issue still persists. This error report was captured by Sentry and includes user device information. It appears to be specific to the Android platform.

My temporary workaround is to use window?.ethereum?.enable() to ensure connectivity with the wallet on the Android version of Metamask.

but do you have window.ethereum on Android Metamask App Browser? I do not have it at any point, always undefined

ArmmGh avatar Nov 02 '23 22:11 ArmmGh

I am also facing the same issue in the browser its working just fine using the extension but on android it showing error

app-index.js:31 ConnectorNotFoundError: Connector not found at MetaMaskConnector.connect (webpack-internal:///(app-pages-browser)/./node_modules/@wagmi/connectors/dist/metaMask.js:88:15) at async connect (webpack-internal:///(app-pages-browser)/./node_modules/@wagmi/core/dist/chunk-TSH6VVF4.js:732:18)

supra-jatinjainsaraf avatar Nov 06 '23 11:11 supra-jatinjainsaraf

I found how to solve the issue for my case. FIX: Need to have https protocol on your server so it works with mobile android, in my case it was deployed on netlify therefore it has https and it worked.

so Metamask app injects window.ethereum only on https websites as far as I understood

ArmmGh avatar Nov 06 '23 12:11 ArmmGh

I found how to solve the issue for my case. FIX: Need to have https protocol on your server so it works with mobile android, in my case it was deployed on netlify therefore it has https and it worked.

so Metamask app injects window.ethereum only on https websites as far as I understood

Sadly not in my case it, the protocol is https and still window.ethereum is undefined

kkharji avatar Nov 08 '23 04:11 kkharji

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 other comments you can create a new discussion.

github-actions[bot] avatar Jan 06 '24 00:01 github-actions[bot]