• Resolved stephwebdev

    (@stephwebdev)


    The title sums it up well. Every week, like clock-work I get the 401 missing authentication credential error. I have to go into Post SMTP, open the setup wizard, and reconnect my API tokens. I don’t have to change anything, I just have to go through the wizard again with the same Client ID and Client Secret. I manage a website for a client. Sometimes I’m able to catch it first myself, sometimes I get an email from my client forwarding me the error code that was sent to their email when one of their customers tried to place an order. It has been very bad for business, and I can’t find any solutions online. I have found a few forum posts from the past few weeks seeming to describe the same issue, but none of them were actually resolved.

    Here is the error text that gets sent in an email:

    “The log to paste when you open a support issue:
    {
      “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”: {
              “method”: “caribou.api.proto.MailboxService.SendMessage”,
              “service”: “gmail.googleapis.com
            }
          }
        ]
      }
    }”

Viewing 1 replies (of 1 total)
  • Plugin Support M Aqib Khan

    (@aqibkhan9)

    Hello @stephwebdev  ,

    We hope this message finds you well.

    Thank you for reaching out to our Support team.

    The error message you’re encountering, a 401 Unauthorized error from the Gmail API, indicates that the request is missing a valid Client ID and Client Secret (OAuth 2.0 access token). This typically occurs when OAuth authorization is disrupted.

    If you recently changed your Gmail account password, please note that this action revokes all existing OAuth permissions granted to connected apps. As a result, any applications (including Post SMTP) that were previously authorized will be disconnected. You’ll need to reconnect Post SMTP by authorizing it again using the same email account through the Post SMTP setup wizard.

    You may follow our detailed documentation to complete this reauthorization process.

    However, if you’re confident the issue isn’t related to a password change, we may need to explore other potential causes, such as:

    • A conflict with another plugin or theme
    • Browser or site-level caching
    • Expired or incorrect Google Cloud credentials

    Please let us know how you’d like to proceed. We’re here to assist you every step of the way.

    Warm regards,
    Support Team – WP Experts

Viewing 1 replies (of 1 total)

The topic ‘EVERY WEEK: Error 401 Missing Required Authentication Credential’ is closed to new replies.