# 500 error on upload from Github Actions?

**URL:** <https://community.codecov.com/t/500-error-on-upload-from-github-actions/2678>\
**Category:** Bug Fixes\
**Created:** [March 22, 2021, 8:46pm UTC](https://community.codecov.com/t/500-error-on-upload-from-github-actions/2678 "2021-03-22T20:46:30Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![vtjnash](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/vtjnash/32/1314_2.png) [@vtjnash](https://community.codecov.com/u/vtjnash)\
**Post date:** [March 22, 2021, 8:46pm UTC](https://community.codecov.com/t/500-error-on-upload-from-github-actions/2678/1 "2021-03-22T20:46:30Z")

</div>

### Description

I’m getting back a 500 error when attempting to update the Coverage.jl uploader to be run on Github Actions

### Commit SHAs

n/a

### Repository

> <https://github.com/JuliaCI/Coverage.jl/pull/307>

### CI/CD or Build URL

> <https://github.com/JuliaCI/Coverage.jl/pull/307/checks>

### Uploader

Coverage.jl

### Codecov Output

```auto
[ Info: Submitting data to Codecov...
ERROR: LoadError: HTTP.ExceptionRequest.StatusError(500, "POST", "/upload/v2?branch=jn/github-actions&pull_request=307&service=github-actions&build=677392535&commit=81d0ff9f9b9eb7ba93902b249ef8d8655120ad11&slug=JuliaCI/Coverage.jl&build_url=https://github.com/JuliaCI/Coverage.jl/actions/runs/677392535&", HTTP.Messages.Response:
"""
HTTP/1.1 500 Internal Server Error
server: envoy
date: Mon, 22 Mar 2021 20:36:42 GMT
content-type: application/json
x-frame-options: DENY
content-length: vary: Origin, Cookie
x-content-type-options: nosniff
referrer-policy: same-origin
x-envoy-upstream-service-time: Via: 1.1 google
Alt-Svc: clear

{"error": "Server Error (500)"}""")

```

### Expected Results

The coverage data would be uploaded, or an error message given stating the issue (missing token? bad url syntax? missing parameter?)

### Actual Results

An internal server error was reported without details

### Additional Information

I think most users now use the github codecov/codecov-action@v1 script, but I still wouldn’t have expected a 500 error when running this. It doesn’t tell me how to fix the uploader to make the server happy, so hoping for insights here.

---

<div class="post-metadata">

**Author:** ![vtjnash](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/vtjnash/32/1314_2.png) [@vtjnash](https://community.codecov.com/u/vtjnash)\
**Post date:** [March 22, 2021, 10:36pm UTC](https://community.codecov.com/t/500-error-on-upload-from-github-actions/2678/2 "2021-03-22T22:36:11Z")

</div>

I think I found the issue, following a hunch from another issue that a user had reported: the `Accept` header used to be required and allowed choosing the content type of the reply, and that is now rejected.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [March 25, 2021, 5:09pm UTC](https://community.codecov.com/t/500-error-on-upload-from-github-actions/2678/3 "2021-03-25T17:09:53Z")

</div>

@vtjnash are you able to use the bash uploader to unblock you?

---

<div class="post-metadata">

**Author:** ![vtjnash](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/vtjnash/32/1314_2.png) [@vtjnash](https://community.codecov.com/u/vtjnash)\
**Post date:** [March 25, 2021, 5:35pm UTC](https://community.codecov.com/t/500-error-on-upload-from-github-actions/2678/4 "2021-03-25T17:35:06Z")

</div>

Not really. I’m doing maintenance work for a particular upload tool for the codecov community—I can’t really do that by using a different tool.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [March 29, 2021, 5:34pm UTC](https://community.codecov.com/t/500-error-on-upload-from-github-actions/2678/5 "2021-03-29T17:34:08Z")

</div>

@vtjnash ahhh I see, apologies I read this issue wrong. Do you mind pushing a new commit up? I’d like to see what might be going on on our side and confirm it’s the `Accept` header.

---

<div class="post-metadata">

**Author:** ![vtjnash](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/vtjnash/32/1314_2.png) [@vtjnash](https://community.codecov.com/u/vtjnash)\
**Post date:** [March 29, 2021, 6:57pm UTC](https://community.codecov.com/t/500-error-on-upload-from-github-actions/2678/6 "2021-03-29T18:57:31Z")

</div>

I realized it still seemed to fail after removing that. Here’s a new run, still showing “500 Internal Server Error”:

> <https://github.com/JuliaCI/Coverage.jl/pull/309/checks?check_run_id=2221267349>

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [May 3, 2021, 1:16am UTC](https://community.codecov.com/t/500-error-on-upload-from-github-actions/2678/7 "2021-05-03T01:16:22Z")

</div>

@vtjnash we made some fixes on our side and I opened up a test PR [here](https://github.com/thomasrockhu/Coverage.jl/pull/1/checks?check_run_id=2488709535). Is this still an issue for you?

---

<div class="post-metadata">

**Author:** ![vtjnash](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/vtjnash/32/1314_2.png) [@vtjnash](https://community.codecov.com/u/vtjnash)\
**Post date:** [May 10, 2021, 2:56pm UTC](https://community.codecov.com/t/500-error-on-upload-from-github-actions/2678/8 "2021-05-10T14:56:54Z")

</div>

Thanks, it looks like it is working now! I’ve pushed a new commit to trigger it: [https://codecov.io/gh/JuliaCI/Coverage.jl/commit/c0abb4bd9ffc5ebddf9856011aa2fd8957a190bd](https://codecov.io/gh/JuliaCI/Coverage.jl/commit/c0abb4bd9ffc5ebddf9856011aa2fd8957a190bd)

It seems like now I’m hitting a couple other issues. The webhook isn’t reporting status completion, so I tried to reset it, but it errors that it can’t fix the webhook because it is broken(!):  
 ![image](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/5/5494382684497db1cef2647ad6612662682bd07f.png)

And secondly, when I click the codecov logo on that page:  
 ![image](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/1/1dcc04da00f92995668431d726aed37a0b613155.png)

It tries to go to [https://codecov.io/gh/JuliaCI/Coverage.jl/commit/c0abb4bd9ffc5ebddf9856011aa2fd8957a190bd/gh](https://codecov.io/gh/JuliaCI/Coverage.jl/commit/c0abb4bd9ffc5ebddf9856011aa2fd8957a190bd/gh), which gives a 404 error.

Thanks again!

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [May 17, 2021, 8:41pm UTC](https://community.codecov.com/t/500-error-on-upload-from-github-actions/2678/9 "2021-05-17T20:41:43Z")

</div>

Hi @vtjnash, we made a fix for the logo on the page, is it still happening for you? Also, are you still seeing the webhook issue?

---

<div class="post-metadata">

**Author:** ![vtjnash](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/vtjnash/32/1314_2.png) [@vtjnash](https://community.codecov.com/u/vtjnash)\
**Post date:** [May 18, 2021, 6:22pm UTC](https://community.codecov.com/t/500-error-on-upload-from-github-actions/2678/10 "2021-05-18T18:22:36Z")

</div>

No, that link seems to still be trying to go to a nonsensical href (note that I need to be logged in, or it goes to a help page):  
 ![image](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/2/2a6c997be24724b62c7f923a48112776be852e23.png)

Yes, the webhook seems to be fixed now. It looks like the button to reset the webhook is gone. And the webhook itself seems to be working now when I pushed a new PR commit.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [June 11, 2021, 8:31pm UTC](https://community.codecov.com/t/500-error-on-upload-from-github-actions/2678/11 "2021-06-11T20:31:24Z")

</div>

@vtjnash, ok, I think the logo should be good now. Would you be able to see if you’re still having the issue?

---

<div class="post-metadata">

**Author:** ![vtjnash](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/vtjnash/32/1314_2.png) [@vtjnash](https://community.codecov.com/u/vtjnash)\
**Post date:** [June 13, 2021, 7:01pm UTC](https://community.codecov.com/t/500-error-on-upload-from-github-actions/2678/12 "2021-06-13T19:01:51Z")

</div>

Yes, seems to be a valid link now. Thanks!
