Laravel Vapor {“消息”:“请求中包含的安全令牌无效。”}

我使用Laravel Vapor在AWS上成功部署了一个应用程序。

  ==> Ensuring Storage Exists
  ==> Ensuring Cache Table Is Configured
  ==> Updating Function Configurations
  ==> Updating Function Code
  ==> Running Deployment Hooks
  ==> Ensuring Rest API Is Configured
  ==> Ensuring Custom Domains Exist
  ==> Ensuring DNS Records Exist
  ==> Ensuring Mail Is Configured
  ==> Ensuring Scheduled Tasks Are Configured
  ==> Ensuring Queues Are Configured
  ==> Updating Function Aliases To New Version

  Project deployed successfully. (1m26s)

=============== =================================================== 
  Deployment ID   Environment URL (Copied To Clipboard)              
 =============== =================================================== 
  38261           https://clean-kyiv-40wzwvz1sutk.vapor-farm-a1.com  
 =============== =================================================== 

但是,当我转到给定的链接https://clean-kyiv-40wzwvz1sutk.vapor-farm-a1.com时,出现502错误

Laravel Vapor {“消息”:“请求中包含的安全令牌无效。”}

请求链接后,我可以在Vapor上的暂存环境下的Log标签中看到下一条消息。

Laravel Vapor {“消息”:“请求中包含的安全令牌无效。”}

我还应该检查什么来解决该问题?

X00400 回答:Laravel Vapor {“消息”:“请求中包含的安全令牌无效。”}

如果由于某种原因您的代码运行时间超过默认的10秒,则尝试增加部署超时时间,您会从aws Lambda收到此错误


    environments:
        production:
            memory: 1024
            cli-memory: 512
            timeout: 120

enter image description here

本文链接:https://www.f2er.com/3164768.html

大家都在问