Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The provided authorization grant is invalid, expired, or revoked #47

Open
McG77 opened this issue Jun 4, 2019 · 4 comments
Open

The provided authorization grant is invalid, expired, or revoked #47

McG77 opened this issue Jun 4, 2019 · 4 comments

Comments

@McG77
Copy link

McG77 commented Jun 4, 2019

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">
<style type="text/css" media="all"> .wporg-notification .im { color: #888; } /* undo a GMail-inserted style */ </style>
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] => 
            )

    )

)

@yehudah
Copy link
Collaborator

yehudah commented Jun 4, 2019

Hi,

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

@McG77
Copy link
Author

McG77 commented Jun 4, 2019 via email

@McG77
Copy link
Author

McG77 commented Jun 10, 2019

Hi Yehudah, any ideas regarding my last reply?

Kind regards.

@ijaspadikkal
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants