react-apollo
react-apollo copied to clipboard
curl command to download server code results in 'Failed writing body'
I'm experiencing issue #48:
I attempt to download the server code by entering this command into Windows command prompt:
curl https://codeload.github.com/howtographql/react-apollo/tar.gz/starter | tar -xz --strip=1 react-apollo-starter/server
...and receive the following output:
t a r%: TEortralo r o p%e nRiencge iavrecdh i%v eX:f eFradi l eAdv etroa goep eSnp e'e\d\ . \ tTaipmee0 '
Time Time Current
Dload Upload Total Spent Left Speed
2 156k 2 4110 0 0 4110 0 0:00:39 --:--:-- 0:00:39 16440
curl: (23) Failed writing body (1356 != 1370)
I also tried it with powershell, which gave this output:
tar.exe: Error opening archive: Failed to open '\\.\tape0'
same problem
Same here...
I had the same problem. Just use git bash it worked for me.
Windows 10.
Get this error (Under terminal)
tar.exe: Error opening archive: Failed to open

Run the curl command under Git bash (Inside the correct folder) ==> solve the issue


Hi, I am encountering the same error, and trying to solve it with the solution stated above, I got another error stated below:
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:08 --:--:-- 0 curl: (60) SSL certificate problem: unable to get local issuer certificate More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.
gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now
ANY POSSIBLE SOLUTION, PLEASE