Error: could not retrieve nonce: Internal error

Hi, when try to log in to my app via web3auth using sapphire_devnet I get:

hook.js:608 Error: could not retrieve nonce: Internal error, failed to get nonce with status code: 500: traceId: undefined - spanId: undefined
at f (index-cqWneRRW.js:1:1876)
at w.error (index-cqWneRRW.js:1:2439)Caused by: Error: could not retrieve nonce: Internal error, failed to get nonce with status code: 500
at wt (index-DTyerrT2.js:2:2549)
at index-DTyerrT2.js:2:10940 Objectclient: "BMfTqqHVnDFR9OF7mUeUPHxEjT1wOKKh9IrdgZ-2peXWt9_BJX3yHKt35-2RjuxbMu04qYTR4dKBdrLFaOUG1d0"currentLoginProvider: "google"instanceId: "j5emb968s2c"keyMode: "v1"loginId: "2237ac82fe6c01a0825fb16c8bf7a0b02fc10879468383fe8d4b6f60ebcdd68f"popupWindow: "false"redirectToOpener: falsesessionNamespace: ""socialFactorFlow: ""typeOfLogin: "google"verifier: "web3auth"version: "9"whiteLabel: “{"mode":"light"}”[[Prototype]]: Object Object ‘could not retrieve nonce: Internal error, failed to get nonce with status code: 500’ Objectaccess_token: "ya29.a0AXeO80TYNd28PJT7TNameg58nv2MwCQHMLNwCBxcw71JEsTgTRUinZyN1xlRAsZ0UAbSgyFVmkMoC_EkAQ6GCipw0Q0NRRWm9ThZGJSSh5VMlNdB6U0Dw7PmipEhmdpF0oU0hoem7Dw861EZPPYOg5f7XQEFlZoMGsvM3cQtaCgYKAUQSAQ8SFQHGX2MiB2cmIr3EtcdVbUaBLlaOVw0175"authuser: "0"expires_in: "3599"hd: "oev.de"id_token: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjVkMTJhYjc4MmNiNjA5NjI4NWY2OWU0OGFlYTk5MDc5YmI1OWNiODYiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL2FjY291bnRzLmdvb2dsZS5jb20iLCJhenAiOiIyMjE4OTg2MDk3MDktcW5ma2xkZGxlaDFtMW03YnE2ZzhkOGRha2ZmcDBuODYuYXBwcy5nb29nbGV1c2VyY29udG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googleapis.com/auth/userinfo.profile%20openid%20https://www.googleapis.com/auth/userinfo.email"state: "eyJjbGllbnQiOiJCTWZUcXFIVm5ERlI5T0Y3bVVlVVBIeEVqVDF3T0tLaDlJcmRnWi0ycGVYV3Q5X0JKWDN5SEt0MzUtMlJqdXhiTXUwNHFZVFI0ZEtCZHJMRmFPVUcxZDAiLCJjdXJyZW50TG9naW5Qcm92aWRlciI6Imdvb2dsZSIsInBvcHVwV2luZG93IjoiZmFsc2UiLCJ3aGl0ZUxhYmVsIjoie1wibW9kZVwiOlwibGlnaHRcIn0iLCJrZXlNb2RlIjoidjEiLCJsb2dpbklkIjoiMjIzN2FjODJmZTZjMDFhMDgyNWZiMTZjOGJmN2EwYjAyZmMxMDg3OTQ2ODM4M2ZlOGQ0YjZmNjBlYmNkZDY4ZiIsInNlc3Npb25OYW1lc3BhY2UiOiIiLCJzb2NpYWxGYWN0b3JGbG93IjoiIiwidmVyc2lvbiI6IjkiLCJpbnN0YW5jZUlkIjoiajVlbWI5NjhzMmMiLCJ2ZXJpZmllciI6IndlYjNhdXRoIiwidHlwZU9mTG9naW4iOiJnb29nbGUiLCJyZWRpcmVjdFRvT3BlbmVyIjpmYWxzZX0"token_type: "Bearer"version_info: “CmxfU1ZJX0VLZldyUEwxeklzREdBa2lQMDFCUlVSSVpsOXhhRWs0TTBoUk0yZFNiRmRuVjJoSGNtTmpTalJRUjJWeWQwVndRMVZMUXpOVk1YUmxXVE5RUWpaSGFsY3RkVWhuYXpCQk0yNW1XUV8”[[Prototype]]: Objectconstructor: ƒ Object()hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()defineGetter: ƒ defineGetter()defineSetter: ƒ defineSetter()lookupGetter: ƒ lookupGetter()lookupSetter: ƒ lookupSetter()proto: (…)get proto: ƒ proto()set proto: ƒ proto() ‘mounted caught’

1 Like

Hi there!

Thanks for reaching out. It seems like you’re encountering a “could not retrieve nonce” error with Web3Auth’s Plug n Play SDK while logging in using the sapphire_devnet network. The error you see, with a status code 500, typically indicates an internal server issue.

Here’s a quick checklist and a few questions to guide you:

  1. Initialization & Login Code Snippets: Please ensure that your Web3Auth initialization and login code snippets have been set up correctly. This would help us replicate the environment.

  2. Error Context: The error you’re facing seems to be related to Google login. Double-check that your Google credentials are correctly configured and allowed on the devnet environment.

  3. JWT & JWKS Endpoint: You’ve provided an id_token. Do check your JWKS endpoint configuration. This can sometimes affect token verification processes.

  4. Browser Console & Network Logs: If possible, could you share screenshots of your browser console and network logs where the error occurs? This would give us more low-level info about the request and response cycle.

Feel free to update the thread with any additional info you gather or questions you may have. Our support team will look into this and we’ll get back to you promptly! :blush:

Take care!

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

Hey @dapp

Please provide the init and login code for our investigation. Also, could you please try again?

Adding to @shahbaz

Hey, if you were using the Sapphire Devnet, sorry for the inconvience. We were updating our Devnet which might have caused the issue. The timeframe of the issue on Devnet was from 4:00 PM SGT to 6:30 PM SGT. Can you please check if it works now.

If you were not on Sapphire Devnet, please share the login code snippet so we can debug more