Post-SMTP icon indicating copy to clipboard operation
Post-SMTP copied to clipboard

The provided authorization grant is invalid, expired, or revoked

Open McG77 opened this issue 6 years ago • 5 comments

Hi, I keep getting the error message when sending a test email. Here are the diagnostics: Hope you can assist. Thanks

Mailer: postsmtp HostName: fastertaptics.com cURL Version: 7.62.0 OpenSSL Version: OpenSSL/1.1.1 OS: Linux h259 4.19.1 #2 SMP Mon Nov 5 00:50:39 CET 2018 x86_64 PHP: Linux 7.2.10 C PHP Dependencies: iconv=Yes, spl_autoload=Yes, openssl=Yes, sockets=No, allow_url_fopen=Yes, mcrypt=Yes, zlib_encode=Yes WordPress: 5.2.1 en_US UTF-8 WordPress Theme: Clean Commerce WordPress Plugins: All In One SEO Pack, Classic Editor, Post SMTP WordPress wp_mail Owner: /var/www/volumes/xvdf/vhosts/fastertaptics.com/httpdocs/wp-content/plugins/post-smtp/Postman/PostmanWpMailBinder.php WordPress wp_mail Filter(s): wp_staticize_emoji_for_email Postman: 2.0.2 Postman Sender Domain (Envelope|Message): fastertaptics.com | fastertaptics.com Postman Prevent Message Sender Override (Email|Name): Yes | Yes Postman Active Transport: SendGrid API (https://api.sendgrid.com:443) Postman Active Transport Status (Ready|Connected): Yes | Yes Postman Deliveries (Success|Fail): 2 | 0

### Here follows the session transcript The provided authorization grant is invalid, expired, or revoked

--Raw message follows--

SendGrid\Mail\Mail Object ( [from:SendGrid\Mail\Mail:private] => SendGrid\Mail\From Object ( [name:SendGrid\Mail\EmailAddress:private] => Rafael [email:SendGrid\Mail\EmailAddress:private] => [email protected] [substitutions:SendGrid\Mail\EmailAddress:private] => [subject:SendGrid\Mail\EmailAddress:private] => )

[subject:SendGrid\Mail\Mail:private] => SendGrid\Mail\Subject Object
    (
        [subject:SendGrid\Mail\Subject:private] => Postman SMTP Test (fastertaptics.com)
    )

[contents:SendGrid\Mail\Mail:private] => Array
    (
        [0] => SendGrid\Mail\Content Object
            (
                [type:SendGrid\Mail\Content:private] => text/plain
                [value:SendGrid\Mail\Content:private] => Hello!

Sent by Postman 2.0.2 - https://wordpress.org/plugins/post-smtp/

            )

        [1] => SendGrid\Mail\Content Object
            (
                [type:SendGrid\Mail\Content:private] => text/html
                [value:SendGrid\Mail\Content:private] => <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Hello! - 你好 - Bonjour! - नमस्ते - ¡Hola! - Olá - Привет! - 今日は

Image source: poofytoo.com - Used with permission
)
    )

[attachments:SendGrid\Mail\Mail:private] => 
[template_id:SendGrid\Mail\Mail:private] => 
[sections:SendGrid\Mail\Mail:private] => 
[headers:SendGrid\Mail\Mail:private] => 
[categories:SendGrid\Mail\Mail:private] => 
[custom_args:SendGrid\Mail\Mail:private] => 
[substitutions:SendGrid\Mail\Mail:private] => 
[send_at:SendGrid\Mail\Mail:private] => 
[batch_id:SendGrid\Mail\Mail:private] => 
[asm:SendGrid\Mail\Mail:private] => 
[ip_pool_name:SendGrid\Mail\Mail:private] => 
[mail_settings:SendGrid\Mail\Mail:private] => 
[tracking_settings:SendGrid\Mail\Mail:private] => 
[reply_to:SendGrid\Mail\Mail:private] => SendGrid\Mail\ReplyTo Object
    (
        [name:SendGrid\Mail\EmailAddress:private] => 
        [email:SendGrid\Mail\EmailAddress:private] => [email protected]
        [substitutions:SendGrid\Mail\EmailAddress:private] => 
        [subject:SendGrid\Mail\EmailAddress:private] => 
    )

[personalization:SendGrid\Mail\Mail:private] => Array
    (
        [0] => SendGrid\Mail\Personalization Object
            (
                [tos:SendGrid\Mail\Personalization:private] => Array
                    (
                        [0] => SendGrid\Mail\To Object
                            (
                                [name:SendGrid\Mail\EmailAddress:private] => 
                                [email:SendGrid\Mail\EmailAddress:private] => [email protected]
                                [substitutions:SendGrid\Mail\EmailAddress:private] => 
                                [subject:SendGrid\Mail\EmailAddress:private] => 
                            )

                        [1] => SendGrid\Mail\To Object
                            (
                                [name:SendGrid\Mail\EmailAddress:private] => 
                                [email:SendGrid\Mail\EmailAddress:private] => [email protected]
                                [substitutions:SendGrid\Mail\EmailAddress:private] => 
                                [subject:SendGrid\Mail\EmailAddress:private] => 
                            )

                    )

                [ccs:SendGrid\Mail\Personalization:private] => 
                [bccs:SendGrid\Mail\Personalization:private] => 
                [subject:SendGrid\Mail\Personalization:private] => 
                [headers:SendGrid\Mail\Personalization:private] => Array
                    (
                        [X-Mailer] => Postman SMTP 2.0.2 for WordPress (https://wordpress.org/plugins/post-smtp/)
                        [message-id] => [email protected]
                    )

                [substitutions:SendGrid\Mail\Personalization:private] => 
                [dynamic_template_data:SendGrid\Mail\Personalization:private] => 
                [has_dynamic_template:SendGrid\Mail\Personalization:private] => 
                [custom_args:SendGrid\Mail\Personalization:private] => 
                [send_at:SendGrid\Mail\Personalization:private] => 
            )

    )

)

McG77 avatar Jun 04 '19 08:06 McG77

Hi,

Something is wrong with your sendgrid api key, log to your sendgrid account to check that.

yehudah avatar Jun 04 '19 09:06 yehudah

Thanks Yehuda. Sendgrid does not show the API key. They only show an API key ID number for "security" reasons. That is the number I use.

I reset the plug-in and re-entered all the fields again. No change.

On Tue, Jun 4, 2019 at 9:24 PM Yehuda Hassine [email protected] wrote:

Hi,

Something is wrong with your sendgrid api key, log to your sendgrid account to check that.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yehudah/Post-SMTP/issues/47?email_source=notifications&email_token=AJMLMLJCRNPEZYXABIT3AB3PYYYENA5CNFSM4HS2CF52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW37CLA#issuecomment-498594092, or mute the thread https://github.com/notifications/unsubscribe-auth/AJMLMLL6T6ZT3XJ6SSEKNCLPYYYENANCNFSM4HS2CF5Q .

McG77 avatar Jun 04 '19 09:06 McG77

Hi Yehudah, any ideas regarding my last reply?

Kind regards.

McG77 avatar Jun 10 '19 09:06 McG77

Create a new API if you note store when creating and store that API

ijaspadikkal avatar Jun 22 '21 16:06 ijaspadikkal