Gmail操作-确认操作按钮错误:";无法向gmail.com发送请求。”;

Gmail操作-确认操作按钮错误:";无法向gmail.com发送请求。”;,gmail,google-schemas,Gmail,Google Schemas,我试图在收件箱中测试Gmail的操作,特别是确认操作()。我使用Google的Apps脚本编写了一个脚本,将此JSON嵌入电子邮件: <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "EmailMessage", "action": { "@type": "ConfirmAction", "name": "Confir

我试图在收件箱中测试Gmail的操作,特别是确认操作()。我使用Google的Apps脚本编写了一个脚本,将此JSON嵌入电子邮件:

<script type="application/ld+json">
{
    "@context": "http://schema.org",
    "@type": "EmailMessage",
    "action": {
        "@type": "ConfirmAction",
        "name": "Confirm Password Change",
        "handler": {
            "@type": "HttpActionHandler",
            "url": "https://aerobic-forge-659.appspot.com?test=677"
        }
    }
}
</script>
我在互联网上搜索,试图找到解决这个问题的方法,但迄今为止都没有成功。我已经确保为服务器使用一个安全的url,我使用谷歌的脚本发送电子邮件(因此我知道它们经过了正确的身份验证),并且我只向自己的电子邮件地址发送电子邮件(因此我还不需要在谷歌注册)。如有任何帮助/建议,将不胜感激

public class DemoServlet extends HttpServlet {
    @Override
    public void doGet(HttpServletRequest req, HttpServletResponse resp)
        throws IOException {
        resp.setContentType("text/plain");
        resp.getWriter().println("{ \"name\": \"World\" }");
        resp.setStatus(HttpServletResponse.SC_OK);

    }

    @Override
    public void doPost(HttpServletRequest req, HttpServletResponse resp)
        throws IOException {
        resp.setContentType("text/plain");
        resp.getWriter().println("{ \"name\": \"World\" }");
        resp.setStatus(HttpServletResponse.SC_OK);

    }
}