Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repository not known #2334

Closed
mikedugan opened this issue May 19, 2014 · 12 comments

Comments

@mikedugan
Copy link

commented May 19, 2014

repository not known to https://api.travis-ci.org/: neatif/neatif-app

I also tried using it with an uppercase "n", to the same result. I get this any time I try to run travis encrypt or travis pubkey. The repository exists and is already being tested on travis-ci.org

@BanzaiMan

This comment has been minimized.

Copy link
Member

commented May 19, 2014

Looks like you need the upper-case I as well. Furthermore, you have API endpoint slightly off.

The correct URL is https://api.travis-ci.org/repos/NeatIf/neatif-app

Sorry that we don't do the lookup on all case combinations, but for now, that's how we look up repositories. (See #1545.)

@BanzaiMan BanzaiMan closed this May 19, 2014

@mikedugan

This comment has been minimized.

Copy link
Author

commented May 19, 2014

worked like a charm! thanks!

@arielkirkwood

This comment has been minimized.

Copy link

commented Feb 4, 2015

I found this GitHub issue while trying to resolve an issue with encrypting my Code Climate repo token. I couldn't find any other pages listing a solution for that, so apologies if this is off-topic, but one way to fix this problem is to edit the file at .git/config:

[travis]
    slug = <user/org>/<repo>

make sure slug matches the case-sensitive URL structure you see in Travis.

@BanzaiMan

This comment has been minimized.

Copy link
Member

commented Feb 5, 2015

@arielkirkwood Good one. Thanks!

@riquellopes

This comment has been minimized.

Copy link

commented Dec 25, 2015

@arielkirkwood Thanks!

@nolanlawson

This comment has been minimized.

Copy link

commented Jan 16, 2016

@arielkirkwood Thank you! It would be awesome if the travis command let you fix that. I accidentally set the wrong slug name, and then it took me awhile to figure out how to correct it. 😛

@jasonwalsh

This comment has been minimized.

Copy link

commented Dec 16, 2016

Late response, but I wanted to add it here in case anyone is having the same issue:

If you have a Travis Pro account, there is a --pro flag for Travis CLI that indicates to use travis-ci.com as the host for making requests to the API.

While I was trying to use travis encrypt without the --pro flag, I realized that it was using travis-ci.org as the host, thus resulting in the error:

repository not known to https://api.travis-ci.org/: <user/org>/<repo>
@kenorb

This comment has been minimized.

Copy link

commented Jun 3, 2018

Related: #3264 (Renaming github repo breaks travis cli)

@harveyslash

This comment has been minimized.

Copy link

commented Oct 4, 2018

It doesn't solve it for me :
this is my repo Beatest-Edumock/magna

@jasonwalsh

This comment has been minimized.

Copy link

commented Oct 4, 2018

@harveyslash the travis CLI now ships with three flags:

--pro    short-cut for --api-endpoint 'https://api.travis-ci.com/'
--com    short-cut for --api-endpoint 'https://api.travis-ci.com/'
--org    short-cut for --api-endpoint 'https://api.travis-ci.org/'
@harveyslash

This comment has been minimized.

Copy link

commented Oct 4, 2018

The issue was with the repo being registered in the .com domain instead of the .org.
I think some indication to specify org vs com in the UI would be helpful

@hugovk

This comment has been minimized.

Copy link

commented Dec 18, 2018

@arielkirkwood's tip (#2334 (comment)) fixed it for me, in that I had to delete the trailing slash from the slug:

[travis]
-    slug = <user/org>/<repo>/
+    slug = <user/org>/<repo>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
9 participants
You can’t perform that action at this time.