# Upload\_to\_v4 ruby gem uploads failing because of Github actions?

**URL:** <https://community.codecov.com/t/upload-to-v4-ruby-gem-uploads-failing-because-of-github-actions/2841>\
**Category:** Uncategorized\
**Created:** [April 30, 2021, 10:58pm UTC](https://community.codecov.com/t/upload-to-v4-ruby-gem-uploads-failing-because-of-github-actions/2841 "2021-04-30T22:58:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![helloworld1234](https://avatars.discourse-cdn.com/v4/letter/h/7feea3/32.png) [@helloworld1234](https://community.codecov.com/u/helloworld1234)\
**Post date:** [April 30, 2021, 10:58pm UTC](https://community.codecov.com/t/upload-to-v4-ruby-gem-uploads-failing-because-of-github-actions/2841/1 "2021-04-30T22:58:43Z")

</div>

Using Codecov with simplecov, both with Ruby gems, in github actions.

A lot of our builds fail

[https://codecov.io/upload/v4?token=secret&flags&package=ruby-0.5.2&service=github-actions&branch=retry-code-cov&pr=1066&slug=SNIP%SNIP&build=SNIP&commit=SNIP](https://codecov.io/upload/v4?token=secret&flags&package=ruby-0.5.2&service=github-actions&branch=retry-code-cov&pr=1066&slug=SNIP%25SNIP&build=SNIP&commit=SNIP)

```
  req = Net::HTTP::Post.new(
    "#{uri.path}?#{query}",
    {
      'X-Reduced-Redundancy' => 'false',
      'X-Content-Encoding' => 'application/x-gzip',
      'Content-Type' => 'text/plain'
    }
  )

```

Error message:  
{‘detail’: ErrorDetail(string=‘Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue.’, code=‘not\_found’)}

The token ought to be inserted? I don’t understand why it isn’t. Also, uploads fail only intermittently.

---

<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 2, 2021, 12:49am UTC](https://community.codecov.com/t/upload-to-v4-ruby-gem-uploads-failing-because-of-github-actions/2841/2 "2021-05-02T00:49:42Z")

</div>

Hi @helloworld1234 can you provide a commit SHA and a link to a failure?
