# Private Dependencies with API TOKEN Malfunctioned

**URL:** <https://travis-ci.community/t/private-dependencies-with-api-token-malfunctioned/8849>\
**Category:** Travis CI Discussions & Feedback\
**Tags:** build-env, bug\
**Created:** [June 2, 2020, 4:13am UTC](https://travis-ci.community/t/private-dependencies-with-api-token-malfunctioned/8849 "2020-06-02T04:13:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yosimasu](https://avatars.discourse-cdn.com/v4/letter/y/b2d939/32.png) [@yosimasu](https://travis-ci.community/u/yosimasu)\
**Post date:** [June 2, 2020, 4:13am UTC](https://travis-ci.community/t/private-dependencies-with-api-token-malfunctioned/8849/1 "2020-06-02T04:13:03Z")

</div>

[https://travis-ci.com/github/104corp/104ha-pro-app-dev/jobs/342248571](https://travis-ci.com/github/104corp/104ha-pro-app-dev/jobs/342248571)

I use fastlane match to retrieve code sign staff.  
It works fine for a while.  
Yesterday, I got these messages:

```
[02:17:09]: Cloning remote git repo...
Cloning into '/var/folders/z3/_825pg0s3jvf0hb_q8kzmg5h0000gn/T/d20200602-4884-1nuivf1'...
remote: Repository not found.

```

When I debug job, it works well.

The API TOKEN Method malfunctioned.  
Current workaround, I change to use ssh method to make it work.

---

<div class="post-metadata">

**Author:** ![postables](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/postables/32/4709_2.png) [@postables](https://travis-ci.community/u/postables)\
**Post date:** [June 3, 2020, 1:50am UTC](https://travis-ci.community/t/private-dependencies-with-api-token-malfunctioned/8849/2 "2020-06-03T01:50:26Z")

</div>

What config did you use to fix this? I’m running into the same issue I think in [Sudden Golang Dependency Fetch Failures](https://travis-ci.community/t/sudden-golang-dependency-fetch-failures/8862)

---

<div class="post-metadata">

**Author:** ![yosimasu](https://avatars.discourse-cdn.com/v4/letter/y/b2d939/32.png) [@yosimasu](https://travis-ci.community/u/yosimasu)\
**Post date:** [June 3, 2020, 5:12am UTC](https://travis-ci.community/t/private-dependencies-with-api-token-malfunctioned/8849/3 "2020-06-03T05:12:47Z")

</div>

I use [user key](https://docs.travis-ci.com/user/private-dependencies/#user-key) to solve this issue.

It’s convenient to use [API Token](https://docs.travis-ci.com/user/private-dependencies/#api-token) rather than [user key](https://docs.travis-ci.com/user/private-dependencies/#user-key).
