error occurs when composer installs Laravel:
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
there is a hint, then in this link: https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode
then analyzed, there are two situations:
1, the network is not stable, can’t get package from composer to specify a repository; 2, the second reason is more complex, anti-virus software, or ipv6 problems.
Due to some intermittent issues on Travis and other systems, we introduced a degraded network mode which helps Composer finish successfully but disables a few optimizations. This is enabled automatically when an issue is first detected. If you see this issue sporadically you probably don't have to worry (a slow or overloaded network can also cause those time outs), but if it appears repeatedly you might want to look at the options below to identify and resolve it.
If you have been pointed to this page, you want to check a few things:
If you are using ESET antivirus, go in "Advanced Settings" and disable "HTTP-scanner" under "web access protection"
If you are using IPv6, try disabling it. If that solves your issues, get in touch with your ISP or server host, the problem is not at the Packagist level but in the routing rules between you and Packagist (i.e. the internet at large). The best way to get these fixed is raise awareness to the network engineers that have the power to fix it. Take a look at the next section for IPv6 workarounds.
If none of the above helped, please report the error.
means to use anti-virus software what, I win10 directly streaked, with anti-virus function, so I directly re-installed once, it was a network problem.
Read More:
- Message: failed to decode response from marionette
- springboot : Failed to decode downloaded font 和 OTS parsing error
- JS Ajax request is successful, the response displays “failed to load response data”
- CSS Failed to decode downloaded font, OTS parsing error: Failed to convert WOFF 2.0 font to SFNT
- Failed to load response data:No data found for resource with given identifie
- The icon on the layui page is not displayed, and an error message is reported: Failed to decode downloaded font …..
- Unicode decodeerror: ‘UTF-8’ codec can’t decode byte 0xd3 in position 238: invalid continuation B
- How to solve the problem of syntax error: (Unicode error)’unicodescape ‘codec can’t decode bytes in position 2-3: truncat
- Successfully resolved Unicode decodeerror: ‘UTF-8’ codec can’t decode byte 0xd3 in position 238: invalid continuation B
- Attributeerror: ‘STR’ object has no attribute ‘decode’ solution: the pro test is successful.
- Python SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3:
- python SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3: trunca
- When reading the CSV file with Python 3, the Unicode decodeerror: ‘UTF-8’ codec can’t decode byte 0xd0 in position 0: invalid con appears
- Run Python file for the first time with eclipse / pydev: “UTF-8 ‘codec can’t decode byte 0xc4 in position
- original_keras_version = f.attrs[‘keras_version‘].decode(‘utf8‘) AttributeError: ‘str‘ object has
- Syntax Error: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position resolution
- UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xd6 in position 3089: invalid continuation byte
- SyntaxError: (unicode error) ‘unicodeescape‘ codec can‘t decode bytes in position 2-3: truncated \UX
- SyntaxError: (unicode error) ‘unicodeescape‘ codec can‘t decode bytes in position 2-3: truncated \UX
- ‘ascii‘ codec can‘t decode byte 0x90 in position 614: ordinal not in range(128)