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

时间:2019-11-04 17:41:34

标签: laravel amazon-web-services 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错误 502

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

a busy cat

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

1 个答案:

答案 0 :(得分:1)

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


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

enter image description here