I'm tried update my Magento 2.1.0 to 2.1.5 using
composer update and changing the
composer.json file, but shows up this error message below, what can I do to run normally?
Failed to decode response: zlib_decode(): data error
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
To me worked with the first solution, but you can try these:
1 - Solution
Run the composer update with this param.
composer clear-cache && composer update -vvv
It will equilibrate the requests and fix the time out that caused this issue.
2- Solution (only Linux)
On linux, it seems that running this command helps to make ipv4 traffic have a higher prio than ipv6, which is a better alternative than disabling ipv6 entirely:
sudo sh -c "echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf"