S3 upload broken: "Error 411 (Length Required)!!1"
Closed this issue · 7 comments
LebedevRI commented
https://github.com/LebedevRI/rawspeed/runs/1304774769?check_suite_focus=true#step:5:15013
I think you need to specify the file size of the upload-to-be here:
Line 1693 in 10c3884
-> Pinging Codecov
https://codecov.io/upload/v4?package=bash-20201009-048fee3&token=secret&branch=develop&commit=1198c51b391b983f12da10e9f61fca64e9346027&build=327277306&build_url=http%3A%2F%2Fgithub.com%2FLebedevRI%2Frawspeed%2Factions%2Fruns%2F327277306&name=&tag=&slug=LebedevRI%2Frawspeed&service=github-actions&flags=unittests&pr=&job=&cmd_args=e,F,X,s,Z,v
++ curl -X POST --retry 5 --retry-delay 2 --connect-timeout 2 -H 'X-Reduced-Redundancy: false' -H 'X-Content-Type: application/x-gzip' 'https://codecov.io/upload/v4?package=bash-20201009-048fee3&token=&branch=develop&commit=1198c51b391b983f12da10e9f61fca64e9346027&build=327277306&build_url=http%3A%2F%2Fgithub.com%2FLebedevRI%2Frawspeed%2Factions%2Fruns%2F327277306&name=&tag=&slug=LebedevRI%2Frawspeed&service=github-actions&flags=unittests&pr=&job=&cmd_args=e,F,X,s,Z,v'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 1564 100 1564 0 0 60153 0 --:--:-- --:--:-- --:--:-- 60153
+ res='<!DOCTYPE html>
<html lang=en>
<meta charset=utf-8>
<meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
<title>Error 411 (Length Required)!!1</title>
<style>
*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
</style>
<a href=//www.google.com/><span id=logo aria-label=Google></span></a>
<p><b>411.</b> <ins>That’s an error.</ins>
<p>POST requests require a <code>Content-length</code> header. <ins>That’s all we know.</ins>'
++ echo '<!DOCTYPE html>
<html lang=en>
<meta charset=utf-8>
<meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
<title>Error 411 (Length Required)!!1</title>
<style>
*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
</style>
<a href=//www.google.com/><span id=logo aria-label=Google></span></a>
<p><b>411.</b> <ins>That’s an error.</ins>
<p>POST requests require a <code>Content-length</code> header. <ins>That’s all we know.</ins>'
++ head -1
++ grep 'HTTP '
++ cut '-d ' -f2
+ status=
+ '[' '' = '' ']'
+ '[' '<!DOCTYPE html>
<html lang=en>
<meta charset=utf-8>
<meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
<title>Error 411 (Length Required)!!1</title>
<style>
*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
</style>
<a href=//www.google.com/><span id=logo aria-label=Google></span></a>
<p><b>411.</b> <ins>That’s an error.</ins>
<p>POST requests require a <code>Content-length</code> header. <ins>That’s all we know.</ins>' '!=' '' ']'
++ echo '<!DOCTYPE html>
<html lang=en>
<meta charset=utf-8>
<meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
<title>Error 411 (Length Required)!!1</title>
<style>
*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
++ sed -n 2p
</style>
<a href=//www.google.com/><span id=logo aria-label=Google></span></a>
<p><b>411.</b> <ins>That’s an error.</ins>
<p>POST requests require a <code>Content-length</code> header. <ins>That’s all we know.</ins>'
+ s3target='<html lang=en>'
+ say '\033[0;90m->\033[0m Uploading to'
+ echo -e '\033[0;90m->\033[0m Uploading to'
+ say '<html lang=en>'
+ echo -e '<html lang=en>'
-> Uploading to
<html lang=en>
++ curl -fiX PUT --data-binary @/tmp/codecov.XulaMK.gz -H 'Content-Type: application/x-gzip' -H 'Content-Encoding: gzip' '<html lang=en>'
curl: (3) URL using bad/illegal format or missing URL
++ true
+ s3=
+ '[' '' '!=' '' ']'
+ say ' \033[0;31mX>\033[0m Failed to upload'
+ echo -e ' \033[0;31mX>\033[0m Failed to upload'
+ say '\033[0;90m==>\033[0m Uploading to Codecov'
+ echo -e '\033[0;90m==>\033[0m Uploading to Codecov'
X> Failed to upload
==> Uploading to Codecov
++ curl -X POST --data-binary @/tmp/codecov.XulaMK.gz --retry 5 --retry-delay 2 --connect-timeout 2 -H 'Content-Type: text/plain' -H 'Content-Encoding: gzip' -H 'X-Content-Encoding: gzip' -H 'Accept: text/plain' 'https://codecov.io/upload/v2?package=bash-20201009-048fee3&token=&branch=develop&commit=1198c51b391b983f12da10e9f61fca64e9346027&build=327277306&build_url=http%3A%2F%2Fgithub.com%2FLebedevRI%2Frawspeed%2Factions%2Fruns%2F327277306&name=&tag=&slug=LebedevRI%2Frawspeed&service=github-actions&flags=unittests&pr=&job=&cmd_args=e,F,X,s,Z,v&attempt=woff|eot|otf|gif|png|jpg|jpeg|psd|ptt|pptx|numbers|pages|md|txt|xlsx|docx|doc|pdf|csv|yml|yaml|.gitignore|html'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
99 107k 0 0 100 107k 0 171k --:--:-- --:--:-- --:--:-- 170k
100 107k 100 102 100 107k 162 170k --:--:-- --:--:-- --:--:-- 171k
+ res='HTTP 200
https://codecov.io/github/LebedevRI/rawspeed/commit/1198c51b391b983f12da10e9f61fca64e9346027'
++ echo 'HTTP 200
https://codecov.io/github/LebedevRI/rawspeed/commit/1198c51b391b983f12da10e9f61fca64e9346027'
++ head -1
++ cut '-d ' -f2
+ status=200
+ '[' 200 = '' ']'
+ '[' 200 = 200 ']'
++ echo 'HTTP 200
https://codecov.io/github/LebedevRI/rawspeed/commit/1198c51b391b983f12da10e9f61fca64e9346027'
++ head -2
++ tail -1
+ say ' View reports at \033[0;36mhttps://codecov.io/github/LebedevRI/rawspeed/commit/1198c51b391b983f12da10e9f61fca64e9346027\033[0m'
+ echo -e ' View reports at \033[0;36mhttps://codecov.io/github/LebedevRI/rawspeed/commit/1198c51b391b983f12da10e9f61fca64e9346027\033[0m'
+ exit 0
View reports at https://codecov.io/github/LebedevRI/rawspeed/commit/1198c51b391b983f12da10e9f61fca64e9346027
thomasrockhu commented
@LebedevRI, is this still an issue? I noticed a CI run here that looks good.
awhitford commented
I started getting this -- yesterday, I think. So, it is still an issue. Example:
- See: https://github.com/danvick/flutter_form_builder/pull/542/checks?check_run_id=1360346606
- Expand, Upload coverage to Codecov
pgallen90 commented
Also seeing this starting earlier today, same 411 / HTML error page as the other examples.
thomasrockhu commented
@awhitford @pgallen90 just wanted to check, what CI/CD are you seeing this on?
pgallen90 commented
Google Cloud Build, thanks!
awhitford commented
@thomasrockhu I am seeing this with GitHub Actions against a Public Repo -- here is an example.
2020-11-05T23:07:31.7562580Z ##[group]Run codecov/codecov-action@v1
2020-11-05T23:07:31.7562940Z with:
2020-11-05T23:07:31.7563200Z file: coverage/lcov.info
2020-11-05T23:07:31.7563460Z env:
2020-11-05T23:07:31.7563850Z FLUTTER_HOME: /Users/runner/hostedtoolcache/flutter/1.22.3-stable/x64
2020-11-05T23:07:31.7565010Z ##[endgroup]
2020-11-05T23:07:32.4905560Z [command]/bin/bash codecov.sh -f coverage/lcov.info -n -F
2020-11-05T23:07:32.5048130Z
2020-11-05T23:07:32.5048720Z _____ _
2020-11-05T23:07:32.5049080Z / ____| | |
2020-11-05T23:07:32.5049350Z | | ___ __| | ___ ___ _____ __
2020-11-05T23:07:32.5049590Z | | / _ \ / _` |/ _ \/ __/ _ \ \ / /
2020-11-05T23:07:32.5049780Z | |___| (_) | (_| | __/ (_| (_) \ V /
2020-11-05T23:07:32.5050020Z \_____\___/ \__,_|\___|\___\___/ \_/
2020-11-05T23:07:32.5051260Z Bash-20201104-3e6f2fc
2020-11-05T23:07:32.5051540Z
2020-11-05T23:07:32.5051680Z
2020-11-05T23:07:32.5061090Z �[0;90m==>�[0m GitHub Actions detected.
2020-11-05T23:07:33.7227640Z �[0;90mproject root:�[0m .
2020-11-05T23:07:33.8591390Z �[0;32mYaml not found, that's ok! Learn more at�[0m �[0;36mhttp://docs.codecov.io/docs/codecov-yaml�[0m
2020-11-05T23:07:34.0997730Z �[0;90m->�[0m Found 1 reports
2020-11-05T23:07:34.1002310Z �[0;90m==>�[0m Detecting git/mercurial file structure
2020-11-05T23:07:34.4522860Z �[0;90m==>�[0m Reading reports
2020-11-05T23:07:34.5072420Z �[0;32m+�[0m coverage/lcov.info �[0;90mbytes=15909�[0m
2020-11-05T23:07:34.7613390Z �[0;90m==>�[0m Appending adjustments
2020-11-05T23:07:34.7614620Z �[0;36mhttps://docs.codecov.io/docs/fixing-reports�[0m
2020-11-05T23:07:35.0693830Z �[0;32m+�[0m Found adjustments
2020-11-05T23:07:35.2016730Z �[0;90m==>�[0m Gzipping contents
2020-11-05T23:07:35.4209880Z �[0;90m==>�[0m Uploading reports
2020-11-05T23:07:35.4211390Z �[0;90murl:�[0m https://codecov.io
2020-11-05T23:07:35.4213230Z �[0;90mquery:�[0m branch=version_4&commit=f1653f000dbc9d84d163db52a6bacff3b4294ebc&build=348441395&build_url=http%3A%2F%2Fgithub.com%2Fdanvick%2Fflutter_form_builder%2Factions%2Fruns%2F348441395&name=&tag=&slug=danvick%2Fflutter_form_builder&service=github-actions&flags=&pr=&job=&cmd_args=f,n,F
2020-11-05T23:07:35.4290010Z �[0;90m->�[0m Pinging Codecov
2020-11-05T23:07:35.4292840Z https://codecov.io/upload/v4?package=bash-20201104-3e6f2fc&token=secret&branch=version_4&commit=f1653f000dbc9d84d163db52a6bacff3b4294ebc&build=348441395&build_url=http%3A%2F%2Fgithub.com%2Fdanvick%2Fflutter_form_builder%2Factions%2Fruns%2F348441395&name=&tag=&slug=danvick%2Fflutter_form_builder&service=github-actions&flags=&pr=&job=&cmd_args=f,n,F
2020-11-05T23:07:36.0347540Z �[0;31m<!DOCTYPE html>
2020-11-05T23:07:36.0347920Z <html lang=en>
2020-11-05T23:07:36.0348590Z <meta charset=utf-8>
2020-11-05T23:07:36.0349530Z <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
2020-11-05T23:07:36.0350140Z <title>Error 411 (Length Required)!!1</title>
2020-11-05T23:07:36.0350490Z <style>
2020-11-05T23:07:36.0356000Z *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
2020-11-05T23:07:36.0359660Z </style>
2020-11-05T23:07:36.0360520Z <a href=//www.google.com/><span id=logo aria-label=Google></span></a>
2020-11-05T23:07:36.0361710Z <p><b>411.</b> <ins>That’s an error.</ins>
2020-11-05T23:07:36.0362600Z <p>POST requests require a <code>Content-length</code> header. <ins>That’s all we know.</ins>
2020-11-05T23:07:36.0363060Z
2020-11-05T23:07:36.0363590Z 411�[0m
2020-11-05T23:07:36.0364220Z �[0;90m==>�[0m Uploading to Codecov
2020-11-05T23:07:36.0432950Z % Total % Received % Xferd Average Speed Time Time Time Current
2020-11-05T23:07:36.0433500Z Dload Upload Total Spent Left Speed
2020-11-05T23:07:36.0433790Z
2020-11-05T23:07:36.3945430Z 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2020-11-05T23:07:36.8002280Z 100 5381 0 0 100 5381 0 15330 --:--:-- --:--:-- --:--:-- 15286
2020-11-05T23:07:36.8006180Z 100 5493 100 112 100 5381 147 7108 --:--:-- --:--:-- --:--:-- 7246
2020-11-05T23:07:36.8095530Z View reports at �[0;36mhttps://codecov.io/github/danvick/flutter_form_builder/commit/f1653f000dbc9d84d163db52a6bacff3b4294ebc�[0m
2020-11-05T23:07:36.8525570Z Post job cleanup.
awhitford commented
@thomasrockhu Looks solved now. Thank you!