1. <legend id='vi9s8'><style id='vi9s8'><dir id='vi9s8'><q id='vi9s8'></q></dir></style></legend>
      <tfoot id='vi9s8'></tfoot>
    2. <i id='vi9s8'><tr id='vi9s8'><dt id='vi9s8'><q id='vi9s8'><span id='vi9s8'><b id='vi9s8'><form id='vi9s8'><ins id='vi9s8'></ins><ul id='vi9s8'></ul><sub id='vi9s8'></sub></form><legend id='vi9s8'></legend><bdo id='vi9s8'><pre id='vi9s8'><center id='vi9s8'></center></pre></bdo></b><th id='vi9s8'></th></span></q></dt></tr></i><div id='vi9s8'><tfoot id='vi9s8'></tfoot><dl id='vi9s8'><fieldset id='vi9s8'></fieldset></dl></div>

      <small id='vi9s8'></small><noframes id='vi9s8'>

        <bdo id='vi9s8'></bdo><ul id='vi9s8'></ul>
      1. 令牌必须是短期令牌并且在合理的时间范围内

        时间:2023-07-14
        • <small id='3YOMm'></small><noframes id='3YOMm'>

          <i id='3YOMm'><tr id='3YOMm'><dt id='3YOMm'><q id='3YOMm'><span id='3YOMm'><b id='3YOMm'><form id='3YOMm'><ins id='3YOMm'></ins><ul id='3YOMm'></ul><sub id='3YOMm'></sub></form><legend id='3YOMm'></legend><bdo id='3YOMm'><pre id='3YOMm'><center id='3YOMm'></center></pre></bdo></b><th id='3YOMm'></th></span></q></dt></tr></i><div id='3YOMm'><tfoot id='3YOMm'></tfoot><dl id='3YOMm'><fieldset id='3YOMm'></fieldset></dl></div>

          <tfoot id='3YOMm'></tfoot>

              <tbody id='3YOMm'></tbody>

            <legend id='3YOMm'><style id='3YOMm'><dir id='3YOMm'><q id='3YOMm'></q></dir></style></legend>

              • <bdo id='3YOMm'></bdo><ul id='3YOMm'></ul>
                1. 本文介绍了令牌必须是短期令牌并且在合理的时间范围内的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我遇到了与 this 相同的错误.就我而言,当应用尝试通过 Google Cloud Client API 上传文件时,就会发生这种情况.

                  I am having the same error as this. In my case it is happening when the app is trying to upload a file via Google Cloud Client API.

                  POST https://www.googleapis.com/oauth2/v4/token
                  400 Bad Request
                  Invalid JWT: Token must be a short-lived token and in a reasonable timeframe
                  

                  我加载令牌的方式是读取服务帐户 json 文件,并将其附加到 PHP 中的 CURLOPT_HTTPHEADER.过去一个月确实正常,所以我猜测谷歌改变了授权方式.

                  How I load the token is reading a service-account json file, and attach it to CURLOPT_HTTPHEADER in PHP. It did work properly for the past one month, so I am guessing that Google changed the way of authorization.

                  有没有人遇到过&解决了吗?

                  Has anyone faced & solved this?

                  推荐答案

                  我几乎在同一时间偶然发现了同样的问题,所以我预计会出现 Google 的通用错误,但我的计算机上发生了以下情况:

                  I stumbled upon the same issue at roughly the same time, so I expected a generic bug of Google but here is what had happened on my computer :

                  raise HttpAccessTokenRefreshError(error_msg, status=resp.status)
                  oauth2client.client.HttpAccessTokenRefreshError: invalid_grant: Invalid JWT: Token must be a short-lived token and in a reasonable timeframe
                  

                  在我的情况下是由于计算机时钟的同步不良引起的,其中执行的代码有 5 分钟的延迟(由于内部时钟的电池有问题).当我手动将计算机的内部时间更改为正确的时间时,它又开始工作了.

                  was caused in my case by a poor synchronisation of the computer's clock where the code was executed that had a lag of 5 minutes (due to a faulty battery for the internal clock). It started working again when I manually changed the internal time of my computer to the correct one.

                  在此处提到了此解决方案,但未包含完整的错误消息

                  This solution was mentionned here, but not with the full error message

                  这篇关于令牌必须是短期令牌并且在合理的时间范围内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:继续获得“超出未经身份验证使用的每日限制".继续使用需要注册"尝试在我的网络应用上使用 google 下一篇:从 Google 服务帐户编辑 Google 日历事件:403

                  相关文章

                  <tfoot id='0MRjM'></tfoot>
                  <i id='0MRjM'><tr id='0MRjM'><dt id='0MRjM'><q id='0MRjM'><span id='0MRjM'><b id='0MRjM'><form id='0MRjM'><ins id='0MRjM'></ins><ul id='0MRjM'></ul><sub id='0MRjM'></sub></form><legend id='0MRjM'></legend><bdo id='0MRjM'><pre id='0MRjM'><center id='0MRjM'></center></pre></bdo></b><th id='0MRjM'></th></span></q></dt></tr></i><div id='0MRjM'><tfoot id='0MRjM'></tfoot><dl id='0MRjM'><fieldset id='0MRjM'></fieldset></dl></div>

                  • <bdo id='0MRjM'></bdo><ul id='0MRjM'></ul>

                  1. <small id='0MRjM'></small><noframes id='0MRjM'>

                    <legend id='0MRjM'><style id='0MRjM'><dir id='0MRjM'><q id='0MRjM'></q></dir></style></legend>