# Overwriting of asset fails with Github release

**URL:** <https://travis-ci.community/t/overwriting-of-asset-fails-with-github-release/5624>\
**Category:** v2\
**Tags:** bug, github-releases\
**Created:** [October 22, 2019, 2:22pm UTC](https://travis-ci.community/t/overwriting-of-asset-fails-with-github-release/5624 "2019-10-22T14:22:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flamefire](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/flamefire/32/906_2.png) [@Flamefire](https://travis-ci.community/u/Flamefire)\
**Post date:** [October 22, 2019, 2:22pm UTC](https://travis-ci.community/t/overwriting-of-asset-fails-with-github-release/5624/1 "2019-10-22T14:22:30Z")

</div>

I’m trying to update an existing Github release with new assets but getting the following error:

```
failed to deploy
POST https://uploads.github.com/repos/Return-To-The-Roots/libsiedler2/releases/20875891/assets?name=rttrUtils-windows-Nightly.tar.gz: 422 - Validation Failed
Error summary:
  resource: ReleaseAsset
  code: already_exists
  field: name // See: https://developer.github.com/v3 (Octokit::UnprocessableEntity)

```

Relevant build: [https://travis-ci.com/Return-To-The-Roots/libsiedler2/jobs/248285063](https://travis-ci.com/Return-To-The-Roots/libsiedler2/jobs/248285063)

Build running with the same target but different file/OS: [https://travis-ci.com/Return-To-The-Roots/libsiedler2/jobs/248285062](https://travis-ci.com/Return-To-The-Roots/libsiedler2/jobs/248285062)

Shown error there:  
end of file reached (Faraday::ConnectionFailed)  
failed to deploy

---

<div class="post-metadata">

**Author:** ![proddy](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/proddy/32/3005_2.png) [@proddy](https://travis-ci.community/u/proddy)\
**Post date:** [October 27, 2019, 2:44pm UTC](https://travis-ci.community/t/overwriting-of-asset-fails-with-github-release/5624/2 "2019-10-27T14:44:26Z")

</div>

Yes, I have the same issue. Trying with both dpl v2 and v1. I’ll keep experimenting and see what the cause is.

---

<div class="post-metadata">

**Author:** ![Flamefire](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/flamefire/32/906_2.png) [@Flamefire](https://travis-ci.community/u/Flamefire)\
**Post date:** [November 6, 2019, 8:41am UTC](https://travis-ci.community/t/overwriting-of-asset-fails-with-github-release/5624/3 "2019-11-06T08:41:24Z")

</div>

In dpl v1 it does work. Have a look at [https://github.com/Return-To-The-Roots/libsiedler2/blob/56ac0cfab9be2e1558fd24ba3bf9f5c71b21f4ca/.travis.yml](https://github.com/Return-To-The-Roots/libsiedler2/blob/56ac0cfab9be2e1558fd24ba3bf9f5c71b21f4ca/.travis.yml) where we do releases for windows+linux

I wanted to switch to dpl v2 but that didn’t work

---

<div class="post-metadata">

**Author:** ![ogerardin](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/ogerardin/32/3601_2.png) [@ogerardin](https://travis-ci.community/u/ogerardin)\
**Post date:** [July 1, 2020, 10:31am UTC](https://travis-ci.community/t/overwriting-of-asset-fails-with-github-release/5624/4 "2020-07-01T10:31:26Z")

</div>

I seem to be hitting the same problem: [https://travis-ci.com/github/ogerardin/xpman/builds/173556832](https://travis-ci.com/github/ogerardin/xpman/builds/173556832)  
I have 3 jobs (Linux, Mac, Windows) deploying to the same GitHub release. The Linux deploy works fine, the Mac and Windows fail with “Faraday::ConnectionFailed”.

I’m not using dpl v2, unless it has become the default.

How did you solve this?
