Closed horenmar closed 4 years ago
Thanks for reporting this @horenmar
Same problem here in version 1.03.
Error throws in line 28 of Upload.cs (Post()
fails).
One or more errors occurred. (The remote server returned an error: (400) Bad Request.)
Url: https://codecov.io/upload/v4?branch=&commit=&build=&tag=&pr=&name=&flags=&slug=&token=TOKEN-GOES-HERE&package=exe-1.0.3&build_url=&yaml=&job=&service=
I am seeing this issue too (AppVeyor Build)
Any updates?
@baynezy no real update on this issue yet, but for you it seems you were hitting a different issue: #32
@horenmar @axunonb @baynezy Would it be possible for you guys to test out the latest release (v 1.0.5) and let me know if this still is occurring for you?
I believe that this could possibly have been fixed in a later version.
@AdmiringWorm - so I ran it again. It doesn't 400
anymore, but the URL I am given back in the response 404
s.
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _ |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \____|\___|\___\___/ \_/
exe-1.0.5
2018-07-23 20:07:43 INF AppVeyor detected.
2018-07-23 20:07:44 INF Git detected.
2018-07-23 20:07:45 INF Project root: C:\projects\html2markdown
2018-07-23 20:07:45 INF Reading reports.
2018-07-23 20:07:45 INF .\test\Html2Markdown.Test\Html2Markdown.Test.csproj
2018-07-23 20:07:45 INF Uploading Reports.
2018-07-23 20:07:47 INF url: https://codecov.io
2018-07-23 20:07:49 INF query: https://codecov.io/upload/v4?branch=feature/%2359-issue&commit=99e0b721ac36cbafcb2ae2eb81d2313355f6f77e&build=qsi5erf35o0y6a26&tag=&pr=&name=&flags=&slug=baynezy%2FHtml2Markdown&token=&package=exe-1.0.5&build_url=&yaml=codecov.yml&job=baynezy%2Fhtml2markdown%2F3.2.1.352&service=appveyor
2018-07-23 20:07:49 INF Pinging Codecov
2018-07-23 20:07:53 INF Uploading to S3 https://codecov.s3.amazonaws.com
2018-07-23 20:07:53 INF View reports at: https://codecov.io/github/baynezy/Html2Markdown/commit/99e0b721ac36cbafcb2ae2eb81d2313355f6f77e
~@baynezy I see the reason for why that's happening.~
~I noticed you are specifying a file with the path to .\test\Html2Markdown.Test\coverage.xml
. However, it seems that codecov exe isn't picking up that path and instead using the project file instead.~
~Can you please verify that the path for the coverage file exist?~
~And if it does, this seems to be a new bug.~ ~Can you open a new issue for that if that is true, please?~
I'll be closing this issue for now though, let me know if the 400 error occurs again and we can re-open it.
EDIT: Scratch that, I see you specifically upload the project file. This isn't what codecov is expecting, which is why you're getting the current error. You'll need to upload the report file itself.
Still won't work here with v1.0.5
.\tools\codecov -f "..\TestResult.xml" -t "<my-token>
2018-08-02 21:43:57 INF Pinging Codecov
2018-08-02 21:43:59 FTL Failed to upload the report.
at Codecov.Upload.Uploads.Uploader() in D:\Docs\git\contributing\codecov-exe\Source\Codecov\Upload\Uploads.cs:line 34
at Codecov.Program.UploadFacade.Uploader() in D:\Docs\git\contributing\codecov-exe\Source\Codecov\Program\UploadFacade.cs:line 119
at Codecov.Program.Run.Runner(IEnumerable`1 args) in D:\Docs\git\contributing\codecov-exe\Source\Codecov\Program\Run.cs:line 20
@axunonb I see. I'll try figuring out what's going on sometime this weekend.
A new release of codecov-exe was released just now that I believe fixes this issue. (currently indexing of nuget).
If anyone are able to test out the new changes when nuget is done indexing (Version 1.6.0), I would appreciate it.
This could have also been what fixed my issue #74
I'm seeing a 400 error today, after it worked fine for over a year.
https://travis-ci.org/MichaelClerx/myokit/jobs/575105338
==> Uploading
.url https://codecov.io
.query commit=d090f1da9991a198923eaea1cb66112acea4c17d&branch=develop&job=575105338&pr=373&service=travis&build=1579.4&slug=MichaelClerx%2Fmyokit&package=py2.0.15
Pinging Codecov...
Error: HTTP 400
Please upload with the Codecov repository upload token to resolve issue.
This is coming from a public project on travis-ci, so shouldn't need a token?
This is coming from a public project on travis-ci, so shouldn't need a token?
It should yes. However you are submitting on the wrong repo it seems, from the look of the output you have captured it seems you are using the python version of codecov which is located here: https://github.com/codecov/codecov-python
Closing as it is believed to have been fixed in an earlier version.
I am trying to upload cobertura xmls from AppVeyor server, using
codecov.exe
like this:codecov -f cobertura1.xml cobertura2.xml cobertura3.xml cobertura4.xml cobertura5.xml
. No token because according my understanding of the documentation,codecov.exe
shouldn't require token for public AppVeyor builds.I installed from chocolatey, version 1.0.1
Relevant part of the logs:
Link to the build