Closed Xwilarg closed 4 years ago
Related? https://community.codecov.io/t/http-400-while-uploading-to-s3-with-python-codecov-from-travis/1428/8
Oh, looks like #105 fixes this
I no longer have the 599 error but I still have the 400's one
@Xwilarg the error code 400 is definitely will definitely be fixed by issue #105, the 599 error code could have been a temporary issue on the server (I can only assume).
I do see that you are able to upload the coverage report at least now, through the fallback uploader implemented in codecov-exe.
Thanks for your answer, However even if the CI say that it managed to upload it I still have an error on codecov.io
For example the last AppVeyor run tells me
2020-06-09 01:35:54 INF Pinging Codecov
2020-06-09 01:35:55 INF Uploading
2020-06-09 01:35:56 WRN Unable to upload coverage report to Codecov. Server returned: (400) Bad Request
2020-06-09 01:35:56 WRN Unknown reason. Possible reason being invalid parameters.
2020-06-09 01:35:56 WRN Failed to upload the report with CodecovUploader.
2020-06-09 01:35:56 INF Uploading to Codecov
2020-06-09 01:35:56 INF View reports at: https://codecov.io/github/Xwilarg/BooruSharp/commit/4e5223dc403f618b4f91b80d273ca85bf8695be0
However if you go on https://codecov.io/github/Xwilarg/BooruSharp/commit/4e5223dc403f618b4f91b80d273ca85bf8695be0 it says there was an error processing the coverage report.
@Xwilarg typical reasons I have seen that that can cause such issues is an empty or invalid coverage report, and looking at your latest build, I suspect there is an empty coverage report. (codecov-exe do not validate the coverage report before uploading it).
I see you are using opencover, which doesn't fully support .NET Core and its portable debug files. You will need to specify the old edition of the debug files for it to generate a valid coverage report.
You can quickly fix that by adding the following to your project files, and possibly also to the unit testing libraries as well (not entirely sure if the latter was needed or not).
<DebugType>pdbonly</DebugType>
Or you can switch to a coverage utility that supports .NET Core like coverlet (this is the one I use and would recommend).
I switched to coverlet and it's now working, thanks!
Hi,
I'm trying to use Codecov with AppVeyor but I'm getting a Bad Request (400) and an Internal Server Error (599) The unit tests are on .NET Core 3.1 My configuration file is the following:
And here is what AppVeyor is telling me:
If needed you can find the full log here: https://ci.appveyor.com/project/Xwilarg/boorusharp#L656 (Errors are line 658 and 662)
Thanks in advance,