Composer error: Failed to decode response: Failed to decode zlib stream

Composer error: Failed to decode response: Failed to decode zlib stream



If you've experienced this error using Composer, there are several ways on how to solve this.

1. Verify whether the Amasty repository is installed and whether the authentication keys are valid. More information on this can be found in our Composer User Guide.

2. Check whether the server have access to the internet. The below command can help with it: 

curl -I https://amasty.com



3. Check whether the required zlibc library is installed on the server. The next command will either install it or will show that this library is already installed: 

sudo apt-get install zlibc


4. Check whether the zlib.output_compression setting is enabled in the php.ini file. It can be checked with this command: 

php -i | grep "zlib.output_compression"



In case the issue persists, please contact our support team.