nhmood / watson-ruby

inline issue manager
MIT License
634 stars 50 forks source link

Unable to setup gitlab #221

Closed sriharshav closed 10 years ago

sriharshav commented 10 years ago

I am unable to setup gitlab repo. What is expected as endpoint

[ + ] Obtaining OAuth Token for GitLab...
[ ! ] Access to your GitLab account required to make/update issues
      See help or README for more details on GitHub/Bitbucket/GitLab access

GitLab API Endpoint: https://gitlab.com/api/v3

GitLab Private Token: xxx
GitLab Project (ID or Namespace/Name): <firstname>.<lastname>/project
/vendor/bundle/ruby/2.0.0/gems/json-1.8.1/lib/json/common.rb:155:in `parse': 757: unexpected token at '<!DOCTYPE html> (JSON::ParserError)
<html>
<head>
  <title>The page you were looking for doesn't exist (404)</title>
  <link href="/static.css" media="screen" rel="stylesheet" type="text/css" />
</head>
sriharshav commented 10 years ago

It works with GitLab API Endpoint: https://gitlab.com and project ID.

I couldn't get it working with Namespace/Name

nhmood commented 10 years ago

Unfortunately I was only able to test this with the GitLab demo (http://demo.gitlab.com) This was my output

[ + ] Obtaining OAuth Token for GitLab...
[ ! ] Access to your GitLab account required to make/update issues
      See help or README for more details on GitHub/Bitbucket/GitLab access

GitLab API Endpoint: http://demo.gitlab.com

GitLab Private Token: Wvjy2Krpb7y8xi93owUz
GitLab Project (ID or Namespace/Name): Sandbox/Afro
[ o ] Succsesfully accessed GitLab with specified settings

If you look on http://demo.gitlab.com on the side there is a list of projects and they are in the form Namespace/Name. I'm not a GitLab user so I'm not sure what the right terminology for this is.

Let me know if that clarifies things.

sriharshav commented 10 years ago

@nhmood strange it works with demo server.