# Travis-ci.org - Octokit::Unauthorized prevents release to Github

**URL:** https://travis-ci.community/t/travis-ci-org-octokit-unauthorized-prevents-release-to-github/8113
**Category:** Deployment
**Tags:** github-releases
**Created:** [April 12, 2020, 10:05am UTC](https://travis-ci.community/t/travis-ci-org-octokit-unauthorized-prevents-release-to-github/8113 "2020-04-12T10:05:48Z")
**Posts on this page:** 1
**Showing post:** 5

<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: [April 13, 2020, 1:31am UTC](https://travis-ci.community/t/travis-ci-org-octokit-unauthorized-prevents-release-to-github/8113/5 "2020-04-13T01:31:42Z")

</div>

Comparing the stacktrace with [https://github.com/travis-ci/dpl/blob/v1.10.15/lib/dpl/provider/releases.rb](https://github.com/travis-ci/dpl/blob/v1.10.15/lib/dpl/provider/releases.rb), the error happens at checking credentials.  
If you are sure your token is correct, maybe [it doesn’t have required permissions](https://docs.travis-ci.com/user/deployment/releases/#authenticating-with-an-oauth-token)?

FYI, [you are not using deployment v2](https://docs.travis-ci.com/user/deployment-v2#how-to-opt-in-to-v2), so refer to [https://docs.travis-ci.com/user/deployment/releases/](https://docs.travis-ci.com/user/deployment/releases/).

* * *

You can also double-check if your token is decrypted correctly by printing a small part of it.

---

_[View the full topic](https://travis-ci.community/t/travis-ci-org-octokit-unauthorized-prevents-release-to-github/8113)._
