acquia / acquia-lift-samples

This provides sample code and examples of how to use the Lift API and SDK. This is for reference only, and is not intended to be used on a production site.
GNU General Public License v2.0
2 stars 1 forks source link

Lift block kills the sites #3

Open rlnorthcutt opened 4 years ago

rlnorthcutt commented 4 years ago

When enabling Lift block on new sites now, we get a 500 error that kills the site: [12-Feb-2020 22:30:28 UTC] Uncaught PHP Exception GuzzleHttp\Exception\RequestException: "cURL error 3: malformed (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)" at /mnt/www/html/demoacsftest101live/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 201 request_id="ac-ls-ce-13fffdb5-aa19-420c-bb29-f03a3602dcdf-dbd056e5-f455-4030-9d03-0a813cd8a0d2"

My guess is that this is a problem getting the info from the API - probably needs a try/catch or an if to not make the call if the keys aren't there.

rlnorthcutt commented 4 years ago

I think this is when we install the lift tools and there isn't Lift config (api/secret) yet. So - we need to gracefully fail if the lift config doesn't exist in lift tools.