lando / lando

A development tool for all your projects that is fast, easy, powerful and liberating
https://lando.dev
GNU General Public License v3.0
4.01k stars 544 forks source link

Pantheon Recipe returns 404s when trying to pull data or initialize an existing project #3703

Closed magonzalez9 closed 1 month ago

magonzalez9 commented 1 month ago

Running Lando v3.20.8.

Commands like lando init --source pantheon and lando pull return 404 errors when trying to initialize an existing project on Pantheon or pull data from them. They used to work not too long ago and I'm not the only one on my team experiencing these issues.

Things I have tried,

  1. Re-installing Lando
  2. Clear Lando cache
  3. Revoking and creating new Machine Tokens

Here is some sample output when trying to run lando init --source pantheon (Note: I replaced ids with < id > )

lando 09:43:18 VERBOSE ==> making post request to https://terminus.pantheon.io/api/authorize/machine-token 
lando 09:43:18 DEBUG ==> request sent data with {"headers":{"User-Agent":"Terminus/Lando"}} machine_token=****, client=terminus
lando 09:43:18 VERBOSE ==> response recieved: OK with code 200 
lando 09:43:18 VERBOSE ==> making get request to https://terminus.pantheon.io/api/users/<id>/memberships/sites 
lando 09:43:18 DEBUG ==> request sent data with {} limit=5000
lando 09:43:18 VERBOSE ==> making get request to https://terminus.pantheon.io/api/users/<id>/memberships/organizations 
lando 09:43:18 DEBUG ==> request sent data with {} 
lando 09:43:34 ERROR ==> Error: GET request to users/<id>/memberships/sites failed with code 404: Not Found. The server responded with the message Not found.
.
    at /snapshot/cli/node_modules/@lando/pantheon/lib/client.js
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 

Any explanation as to why this might have started happening suddenly would be helpful.

Thanks!

magonzalez9 commented 1 month ago

Updating to v3.21.0-beta.14 resolved this issue