错误" :" invalid_grant"," error_description"在新网站上

时间:2017-08-15 06:55:19

标签: wordpress email gmail-api

我正在建立一个新的WordPress网站。我不是开发人员。我正在尝试使用启用了 gmail API的Google Apps帐户,并使用Postman SMTP 将我的网站连接到 gmail 。在设置API连接的几分钟内,我在Postman的电子邮件日志中收到此错误:刷新OAuth2令牌时出错,消息:'

  

{"错误" :" invalid_grant"," error_description" :"令牌已经存在   过期       或被撤销。" }'

我甚至已经生成了一个新的API秘密并将其放入Postman设置中。我已启用并禁用了BlueHost的免费WordPress SSL。我无法让我的网站发送任何类型的电子邮件(联系表单提交,订单确认等)。我已经联系过BlueHost的技术支持,他们说这不是他们。

此处也在Postman支持主题上发布了这个问题:https://wordpress.org/support/topic/google-api-11/

建议?

POSTMAN DIAGNOSTIC TEST OUTPUT
OS: Linux box5059.bluehost.com 3.12.74-20170619.148.ELK6.x86_64 #1 SMP Mon 
Jun 19 19:48:05 CDT 2017 x86_64
PHP: Linux 7.0.12 C
PHP Dependencies: iconv=Yes, spl_autoload=Yes, openssl=Yes, sockets=Yes, 
allow_url_fopen=Yes, mcrypt=Yes, zlib_encode=Yes
WordPress: 4.8.1 en_US UTF-8
WordPress Theme: FocusBlog
WordPress Plugins: Gravity Forms, Akismet Anti-Spam, iThemes Security, 
Facebook for WooCommerce, Imagify, Members, Postman SMTP, Thrive Apprentice, 
Thrive Clever Widgets, Thrive Headline Optimizer, Thrive Leads, Thrive Quiz 
Builder, Thrive Ultimatum, Thrive Visual Editor, UpdraftPlus - 
Backup/Restore, WooCommerce AvaTax, WooCommerce Customer History, 
WooCommerce Amazon Pay Gateway, WooCommerce Stripe Gateway, WooCommerce 
Google Analytics Pro, WooCommerce - Gravity Forms Product Add-Ons, 
WooCommerce, Yoast SEO, WP Rocket
WordPress wp_mail Filter(s): wp_staticize_emoji_for_email
Postman: 1.7.2
Postman Sender Domain (Envelope|Message): OurCityCares.org | 
OurCityCares.org
Postman Prevent Message Sender Override (Email|Name): No | No
Postman Active Transport: Gmail API (https:oauth2://www.googleapis.com:443)
Postman Active Transport Status (Ready|Connected): Yes | Yes
Postman Deliveries (Success|Fail): 0 | 19

POSTMAN CONNECTIVITY TEST OUTPUT
Transport   Socket  Status* Service Available   Server ID   Authentication
None    Login   Plain   CRAM-MD5    OAuth 2.0
SMTP    www.googleapis.com:25   Closed  No  -   -   -   -   -   -
SMTP    www.googleapis.com:465  Closed  No  -   -   -   -   -   -
SMTP    www.googleapis.com:587  Closed  No  -   -   -   -   -   -
Gmail API   www.googleapis.com:443  Open     HTTPS    googleapis.com  n/a
Mandrill API    mandrillapp.com:443 Open     HTTPS    mandrillapp.com n/a
SendGrid API    api.sendgrid.com:443    Open     HTTPS    sendgrid.com    
n/a
* According to portquiz.net

Summary:

✅  Port 443 can be used with the Gmail API.
✅  Port 443 can be used with the SendGrid API.
✅  Port 443 can be used with the Mandrill API.
❌ No outbound route between this site and the Internet on Port 25.
❌ No outbound route between this site and the Internet on Port 587.
❌ No outbound route between this site and the Internet on Port 465.
A test with "No" Service Available indicates one or more of these issues:

Your web host has placed a firewall between this site and the Internet
The SMTP hostname is wrong or the mail server does not provide service on 
this port
Your PHP configuration is preventing outbound connections
Your WordPress configuration is preventing outbound connections
If the issues above can not be resolved, your last option is to configure 
Postman to use an email account managed by your web host with an SMTP server 
managed by your web host.

0 个答案:

没有答案
相关问题