Title: 401 Error with Gmail
Last modified: January 31, 2024

---

# 401 Error with Gmail

 *  Resolved [agenciayork](https://wordpress.org/support/users/agenciayork/)
 * (@agenciayork)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/401-error-with-gmail/)
 * One day the plugin just stopped working, but when I checked the setup settings,
   all was OK, the credentials and all. I tried to authorize the plugin using the“
   Allow plugin to send emails using your Gmail account” button, but the notification“
   There was an error while processing the authentication request. The nonce is 
   invalid. Please try again.” pops-up everytime. I also tried deleting the last
   credentials and creating new ones, but doesn’t fix the problem at all.
 *     ```wp-block-code
       Email Source: Contact Form 7
       Mailer: Google / Gmail
       {
         "error": {
           "code": 401,
           "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
           "errors": [
             {
               "message": "Login Required.",
               "domain": "global",
               "reason": "required",
               "location": "Authorization",
               "locationType": "header"
             }
           ],
           "status": "UNAUTHENTICATED",
           "details": [
             {
               "@type": "type.googleapis.com/google.rpc.ErrorInfo",
               "reason": "CREDENTIALS_MISSING",
               "domain": "googleapis.com",
               "metadata": {
                 "service": "gmail.googleapis.com",
                 "method": "caribou.api.proto.MailboxService.SendMessage"
               }
             }
           ]
         }
       }
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2F401-error-with-gmail%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Nukak Asanansi](https://wordpress.org/support/users/nasanansi/)
 * (@nasanansi)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/401-error-with-gmail/#post-17391777)
 * Hi [@agenciayork](https://wordpress.org/support/users/agenciayork/),
 * Thanks for reaching out.
 * We tried replicating this but were unable to as the authorization works fine 
   on our end. Can you please try the authorization with your browser on incognito
   mode?
 * Additionally, please check that you have the latest version of the plugin installed(
   3.11.1). If you don’t please update it and try the authorization again.
 * I hope this helps.
 * Thanks 🙂

Viewing 1 replies (of 1 total)

The topic ‘401 Error with Gmail’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Nukak Asanansi](https://wordpress.org/support/users/nasanansi/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/401-error-with-gmail/#post-17391777)
 * Status: resolved