composer Failed to decode response: zlib_decode(): data error

Composer error problem

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

The cause of this error is usually the network.
The solution
Composer page provides a degraded mode solution. If we have ipv6 on we need to uncheck ipv6.

Read More: