lando / acquia

The Official Acquia Lando Plugin
https://docs.lando.dev/acquia
GNU General Public License v3.0
2 stars 6 forks source link

Error when trying to initialize with Acquia recipe #9

Open DicksB opened 3 years ago

DicksB commented 3 years ago

MacOS 11.3.1 Docker Desktop 3.3.3 Lando 3.1.4

Having corrected my ACLI problem (thanks to Mike Milano), I got my "hello" application up and running under 3.1.4. I then tried initializing a project with the Acquia Cloud recipe:

% lando init --source acquia -v ? Enter an Acquia API key (obfuscated) ? Enter an Acquia API secret [hidden] lando 09:41:24 ERROR ==> TypeError: Cannot read property 'data' of undefined at /snapshot/lando/build/cli/integrations/lando-acquia/lib/api.js at processTicksAndRejections (internal/process/task_queues.js:97:5)

Same error occurs whether initializing an empty directory, or a directory into which I've already cloned a codebase from Acquia Cloud:

% lando init -v --source cwd --recipe acquia ? Enter an Acquia API key (obfuscated) ? Enter an Acquia API secret [hidden] lando 09:40:00 ERROR ==> TypeError: Cannot read property 'data' of undefined at /snapshot/lando/build/cli/integrations/lando-acquia/lib/api.js at processTicksAndRejections (internal/process/task_queues.js:97:5)

mikemilano commented 3 years ago

We've tracked this down to most likely being a VPN issue. It works outside the VPN.

wesleymusgrove commented 3 years ago

I'm getting this too. image

I've got a working drupal8 recipe for when I'm on VPN/corporate proxy that requires custom CA certificates to be installed. Is there a way to specify proxy/CAfile info into /snapshot/lando/build/cli/integrations/lando-acquia/lib/api.js?

michaelsilao commented 2 years ago

hi just wanted to know if someone has resolved this? im getting this same issue currently on my office machine

sammykumar commented 2 years ago

I had the same issue. My environment MacOS (M1) is behind a corporate VPN (Zscaler). Adding my Zscaler's root certificate to Node and Curl solved my issue.

Node: https://docs.devwithlando.io/guides/lando-corporate-network-tips.html#add-cert-to-host-environment Curl: https://docs.devwithlando.io/guides/lando-corporate-network-tips.html#adding-certs-for-native-curl