# \[Archive\] WalletServicesPlugin connect error

**URL:** <https://builder.metamask.io/t/archive-walletservicesplugin-connect-error/1063>\
**Category:** Embedded Wallets (Web3Auth)\
**Created:** [March 6, 2025, 9:18am UTC](https://builder.metamask.io/t/archive-walletservicesplugin-connect-error/1063 "2025-03-06T09:18:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rui](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@rui](https://builder.metamask.io/u/rui)\
**Post date:** [March 6, 2025, 9:18am UTC](https://builder.metamask.io/t/archive-walletservicesplugin-connect-error/1063/1 "2025-03-06T09:18:58Z")

</div>

> **🏛 Archived Content from Web3Auth Community**
> 
> This topic was originally posted by **rui** on 3/6/2025.  
> This content has been migrated from our previous community forum to preserve valuable discussions.

* * *

Hello,  
when I am trying to use the walletserviceplugin for swap, I got the following error:

- **SDK Version** (package.json):  
“web3auth/auth-adapter”: “^9.6.0”,  
“web3auth/base”: “^9.6.0”,  
“web3auth/ethereum-provider”: “^9.6.0”,  
“web3auth/no-modal”: “^9.6.0”
- **Platform** : next.js
- **Browser Console Screenshots** :  

[![image](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/1X/05cf6c722f04230e7aa95a82568ef5de71cc1cc4.png)
image980×517 36.3 KB
](https://web3auth.io/community/uploads/default/original/2X/4/4708f5dcd666e6c1e23adcdd7d271fce10b4e401.png "image")
  

[![image](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/1X/b56026dc5cc5be51aae3ac2f64c6ed86a94d1765.png)
image875×551 39.2 KB
](https://web3auth.io/community/uploads/default/original/2X/e/e3d836445f3fbecf509a244e216be10550c7c363.png "image")
  

[![image](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/1X/57d3644127bab82167c884532687325517f3c688.png)
image999×581 38.8 KB
](https://web3auth.io/community/uploads/default/original/2X/1/15658252753df71fecd3621a41fb9fb4c2b5a021.png "image")

**Web3Auth initialization and login code snippet**

```auto
        const web3authInstance = new Web3AuthNoModal({
          clientId,
          web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_DEVNET,
          privateKeyProvider: ethereumPrivateKeyProvider,
          uiConfig: {
            logoLight: "https://web3auth.io/images/web3auth-logo.svg",
            logoDark: "https://web3auth.io/images/web3auth-logo---Dark.svg",
            defaultLanguage: "en", // en, de, ja, ko, zh, es, fr, pt, nl
      },
    });

    const authAdapter = new AuthAdapter();
    web3authInstance.configureAdapter(authAdapter);

    const walletServicesPlugin = new WalletServicesPlugin();

    await web3authInstance.init();
    setWeb3auth(web3authInstance);
    setProvider(web3authInstance.provider);
    web3authInstance.addPlugin(walletServicesPlugin); // Add the plugin to web3auth
    setWalletServicesPlugin(walletServicesPlugin);
    setIsInitialized(true);

```

Thanks!

Update: I can login using the initialization above, but my colleague is experiencing this error:

[![image](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/1X/e3634e44e2d56e5171d7b003648e335989b78434.png)
image695×348 82.2 KB
](https://web3auth.io/community/uploads/default/original/2X/4/48009afeca9cf118669e3d999df715d168209a74.png "image")
  
`[{"errorMsg":"Failed to fetch","errorStack":"Error: Failed to fetch\n at wt (https://auth.web3auth.io/v9/assets/index-DTyerrT2.js:2:2549)\n at https://auth.web3auth.io/v9/assets/index-DTyerrT2.js:2:10940","title":"Mount Error","createdAt":"3/7/2025, 9:08:12 AM","info":{"customAuthState":{"client":"BA79c9hE1uU1QrDOOqXKy_i1T-RpJgh20dq9OvLsFV_pWobbQmjxx7taPTv6ioypL-oVm8yEZ9pVIREdKCDbkNo","currentLoginProvider":"google","popupWindow":"true","whiteLabel":"{\"mode\":\"light\"}","keyMode":"v1","loginId":"df2698a84605e64308c3626e25c4a1e366fd9148fffbfc04d60795816aa11caf","sessionNamespace":"","socialFactorFlow":"","version":"9","instanceId":"subx5xvj71m","verifier":"web3auth","typeOfLogin":"google","redirectToOpener":false},"customAuthArgs":...`

---

<div class="post-metadata">

**Author:** ![w3abot](https://avatars.discourse-cdn.com/v4/letter/w/4da419/32.png) [@w3abot](https://builder.metamask.io/u/w3abot)\
**Post date:** [March 6, 2025, 9:20am UTC](https://builder.metamask.io/t/archive-walletservicesplugin-connect-error/1063/2 "2025-03-06T09:20:11Z")

</div>

Hello Rui,

Thanks for reaching out! I see you’re experiencing a `WalletServicesPlugin` connect error while working with the Web3Auth PnP Web SDK on a Next.js platform. Based on the details provided, here’s what we have:

- **SDK Version** : `9.6.0` (Auth Adapter, Base, Ethereum Provider, and No Modal)
- **Platform** : Next.js
- **Error Display** : Issues are captured in the browser console screenshots
- **Initialization & Login Code** : Provided

To help the support team address this efficiently, I’ll ensure they have all the details needed. Here are a couple of additional questions or suggestions for you to consider which might be relevant:

1. **Potential Causes** : Make sure all network requests related to the Web3Auth services are not being blocked by browser settings, firewalls, or other extensions.
2. **Alternative Solutions** : Double-check you have the latest version of dependent packages, as updates outside the Web3Auth SDKs might trigger compatibility issues.

Since you’ve provided the console screenshots already, there’s no need to send those details again. Our support team will take a look and reach out if they need more information.

Thanks for your patience, and we’ll aim to get this resolved for you swiftly!

> Note: This response was generated by an AI bot and may require further verification. The Web3Auth support team has tracked this issue and will be responding as soon as possible.

> Additionally, we would recommend you to join our biweekly Office Hours to get this resolved even faster. [Web3Auth Developer Office Hours](https://web3auth.io/community/t/web3auth-developer-office-hours/8777)

---

<div class="post-metadata">

**Author:** ![yashovardhan](https://yyz1.discourse-cdn.com/flex011/user_avatar/builder.metamask.io/yashovardhan/32/1526_2.png) [@yashovardhan](https://builder.metamask.io/u/yashovardhan)\
**Post date:** [March 27, 2025, 2:16pm UTC](https://builder.metamask.io/t/archive-walletservicesplugin-connect-error/1063/3 "2025-03-27T14:16:43Z")

</div>

Hi @rui,

I noticed you’re calling `await web3authInstance.init();` before `web3authInstance.addPlugin(walletServicesPlugin);`, which seems to be causing this issue.

Just a heads up, it’s best to make sure the entire web3auth instance is configured before you initialize it.
