# Resource not found ({"file":"not found"})

**URL:** <https://travis-ci.community/t/resource-not-found-file-not-found/13167>\
**Category:** Deployment\
**Tags:** travis-build\
**Created:** [July 20, 2022, 6:14pm UTC](https://travis-ci.community/t/resource-not-found-file-not-found/13167 "2022-07-20T18:14:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cizzats](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/cizzats/32/8122_2.png) [@Cizzats](https://travis-ci.community/u/Cizzats)\
**Post date:** [July 20, 2022, 6:14pm UTC](https://travis-ci.community/t/resource-not-found-file-not-found/13167/1 "2022-07-20T18:14:21Z")

</div>

I’m trying to encrypt a token in the `.travis.yml` file using the command `travis encrypt MYVAR --add deploy.api_key --pro` re Travis.

Instead I got in console `resource not found ({"file":"not found"})`

I have installed Travis CLI on my machine. Also I successfully logged in travis from CLI with command `travis login --github-token {tokenHere} --com`. What am I missing?

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [July 20, 2022, 6:16pm UTC](https://travis-ci.community/t/resource-not-found-file-not-found/13167/2 "2022-07-20T18:16:50Z")

</div>

Resource not found basically means that Travis isn’t able to find your project. As far as I know, secrets are associated with the project, so Travis needs to find which project are you generating your secrets for. All that said, you’re probably missing the `-r` flag. Try something like the following:

```bash
travis encrypt aws_secret_access_key=very_secret_string -r mygithubusername/reponame --com  

```
