Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve Unexpected HTTP status code: 404(-1)

Although I set up my xcode swift file to create a repository when I click SourceControl -> Make a Working Copy I receive the error window "All projects are already under source control. Then when I to Window -> Welcome to Xcode -> "Check out an existing project" I get the error "Unexpected HTTP status code: 404(-1). Does anyone have an idea on how to solve this please? Thank you

like image 602
kylel95 Avatar asked Jan 26 '16 00:01

kylel95


2 Answers

When you use Welcome to XCode > Check out an existing project you need to enter the github repository url as provided on the <> Code tab in github. It will look something like

    https://github.com/username/MyRepository.git
like image 68
Michael Avatar answered Sep 22 '22 07:09

Michael


In my case I got -401 with the following premises:

  • The URL was OK
  • The user credentials were OK
  • However, the user was not approved for downloading from that repository

Using the correct user solved the issue.

like image 42
htafoya Avatar answered Sep 26 '22 07:09

htafoya