Php – Laravel composer update error – Failed to decode response: zlib_decode(): data error

composer-phplaravellaravel-5.1PHP

I have a problem to update dependencies in my project. Issue:

Failed to decode response: zlib_decode(): data error
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info

Best Answer

In some cases It's only because of poor or interrupted internet connections

One solution might be changing your internet form Wi-Fi to Ethernet.


If you are using ESET antivirus, go in "Advanced Settings" and disable "HTTP-scanner" under "web access protection"


If you're using Virtualbox, Then you might need to downgrade to resolve the issue


If you are using IPv6, try disabling it.

sudo sh -c "echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf"
Related Topic