Virtual Device
Virtual Device

Reputation: 2050

Laravel Vapor {“message”:“The security token included in the request is invalid.”}

I successfully deployed an app on AWS with Laravel Vapor.

  ==> 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  
 =============== =================================================== 

However, when I go on the given link https://clean-kyiv-40wzwvz1sutk.vapor-farm-a1.com I am getting 502 Error 502

After requesting the link I can see, on Vapor, in the Log tab inside the staging environment next message.

a busy cat

What else should I check to resolve that issue?

Upvotes: 0

Views: 1468

Answers (1)

Daniel Yovchev
Daniel Yovchev

Reputation: 337

Try increasing your deployment timeout if for some reason your code runs for longer than the default 10sec you will get this error from aws Lambda


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

enter image description here

Upvotes: 0

Related Questions