# Invalid option "--api\_key="

**URL:** https://travis-ci.community/t/invalid-option-api-key/5733
**Category:** Deployment
**Tags:** bug
**Created:** [October 30, 2019, 10:15am UTC](https://travis-ci.community/t/invalid-option-api-key/5733 "2019-10-30T10:15:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![aspel](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/aspel/32/3027_2.png) [@aspel](https://travis-ci.community/u/aspel)
#### Post date: [October 30, 2019, 10:15am UTC](https://travis-ci.community/t/invalid-option-api-key/5733/1 "2019-10-30T10:15:39Z")

</div>

Hello,

I have a strange situation with deployment  
[https://travis-ci.org/aspel/twitchview-go/builds/604886542](https://travis-ci.org/aspel/twitchview-go/builds/604886542)  
Here is my code

```auto
deploy:
  provider: releases
  api_key: $GITHUB_TOKEN
  file:
    - "${TRAVIS_BUILD_DIR}/twitchview-go.darwin.tar.xz"
    - "${TRAVIS_BUILD_DIR}/twitchview-go.linux.tar.xz"
    - "${TRAVIS_BUILD_DIR}/twitchview-go.win.tar.xz"
  skip_cleanup: true
  on:
    tags: true

```

Travis return this error, but deployment was success.  
All tar files ware uploaded to GitHub.

```auto
dpl_0
$ rvm $(travis_internal_ruby) --fuzzy do ruby -S gem install dpl
Fetching: dpl-1.10.13.gem (100%)
Successfully installed dpl-1.10.13
gem installed
invalid option "--api_key="
failed to deploy
dpl_0

```

> **[aspel/twitchview-go](https://github.com/aspel/twitchview-go/releases/tag/v0.1.6)**
>
> Twitchview program written on golang . Contribute to aspel/twitchview-go development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)
#### Post date: [October 30, 2019, 12:43pm UTC](https://travis-ci.community/t/invalid-option-api-key/5733/2 "2019-10-30T12:43:10Z")

</div>

> [@"invalid option “–github\_token=”" deploying to Github pages](https://travis-ci.community/t/invalid-option-github-token-deploying-to-github-pages/5276/2):
>
> You didn’t set the GITHUB\_TOKEN environment variable.

---

<div class="post-metadata">

### Author: ![aspel](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/aspel/32/3027_2.png) [@aspel](https://travis-ci.community/u/aspel)
#### Post date: [October 30, 2019, 1:07pm UTC](https://travis-ci.community/t/invalid-option-api-key/5733/3 "2019-10-30T13:07:25Z")

</div>

Found the problem. There are 2 sites travis/com travis/org.  
Some how my pipeline was deployed on both sites. One of them was success.

---

<div class="post-metadata">

### Author: ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)
#### Post date: [October 30, 2019, 1:40pm UTC](https://travis-ci.community/t/invalid-option-api-key/5733/4 "2019-10-30T13:40:30Z")

</div>

> [@Travis intermittently not providing secret environment tokens](https://travis-ci.community/t/travis-intermittently-not-providing-secret-environment-tokens/5493/7):
>
> This means that your repo has integration set up for both [travis-ci.org](http://travis-ci.org) and [travis-ci.com](http://travis-ci.com). Pick one of them and disable Travis integration for the other in [https://travis-ci.org/account/repositories](https://travis-ci.org/account/repositories) or [https://travis-ci.com/account/repositories](https://travis-ci.com/account/repositories), correspondingly.
