Web3Auth.init stopped working

Hi,

  • SDK Version: 8.0.0

  • Platform: IOS

I am using the rn-expo-example which uses @web3auth/react-native-sdk version 8.0.0. I’m just playing around with the sdk to get a feel of it on the IOS platform.

My issue is the call “await web3auth.init()” (which I’ve seen work before) has suddenly stopped working. Seems it’s stuck awaiting in this call for some reason. I haven’t changed much from what was there in the example app. Here’s my instantiation of the Web3Auth object.

Is this simply a function of me being on the SAPPHIRE_DEVNET and there being possible outtages?

Thanks for sharing the details, Jerry! Here’s a summary of your issue for the support team:


Issue Summary

  • SDK: PnP React Native SDK (@web3auth/react-native-sdk)
  • SDK Version: 8.0.0
  • Platform: iOS
  • Example Used: rn-expo-example
  • Problem: await web3auth.init() is stuck and not resolving (previously worked).
  • Recent Changes: Minimal to none; mostly using the example app.
  • Screenshot Provided: Yes (Web3Auth instantiation code visible).
  • Network: Using SAPPHIRE_DEVNET.

Possible Causes & Next Steps

  1. SAPPHIRE_DEVNET Outages:
    It’s possible that the SAPPHIRE_DEVNET is experiencing temporary issues. You can check Web3Auth Status Page for any ongoing outages.

  2. SDK/Example Updates:
    Double-check that all dependencies are up-to-date and that there aren’t breaking changes in the example or SDK. Sometimes, updating Expo or related packages can cause compatibility issues.

  3. Debugging Steps:

    • Try switching to a different network (e.g., SAPPHIRE_MAINNET or TESTNET) to see if the issue persists.
    • Check the device’s network connectivity and permissions.
    • Review the iOS device logs for any errors during initialization.
  4. Console Logs:
    If possible, provide any logs or errors from Xcode or Metro bundler when you attempt to initialize. This can help pinpoint if the SDK is throwing any silent errors.


Reference Docs


Request for Additional Info (if available):

  • Any console logs or error messages from Xcode/Metro bundler.
  • Confirmation if the issue happens on a physical device, simulator, or both.

Let us know if you’re able to try these steps or if you notice any additional error messages. We’ll help you get this sorted!

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

I discovered the root cause was rate limiting on the public RPC endpoint I was using. I resolved the issue by configuring a private Infura RPC URL instead of relying on the public endpoint. Some feedback on my process:

What Made This Challenging

The lack of feedback made this particularly difficult to diagnose:

  • No error messages in the console
  • No timeout warnings
  • Requests simply hung in an awaiting state indefinitely
  • No indication that external service limits were the culprit

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.