tag:help.appveyor.com,2012-11-13:/discussions/problems/14755-cant-import-gitlab-projectsAppVeyor: Discussion 2018-09-08T21:00:33Ztag:help.appveyor.com,2012-11-13:Comment/455125072018-06-19T19:58:05Z2018-06-19T19:58:06ZCan't import gitlab projects<div><p>Hi! i have problems importing gitlab projects... all time get "Cancelled Task"...</p>
<p>I authorized AppVeyor in GitLab and i see it on gitlab settings page.</p>
<p>Thanks.</p></div>Tardotag:help.appveyor.com,2012-11-13:Comment/455125072018-06-19T20:32:49Z2018-06-19T20:32:49ZCan't import gitlab projects<div><p>Is it a public repository?</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/455125072018-06-19T21:11:21Z2018-06-19T21:11:22ZCan't import gitlab projects<div><p>Yes, all my repos are public.</p>
<p><a href="https://gitlab.com/users/Tardo/projects">https://gitlab.com/users/Tardo/projects</a></p></div>Tardotag:help.appveyor.com,2012-11-13:Comment/455125072018-06-19T22:01:08Z2018-06-19T22:01:08ZCan't import gitlab projects<div><p>And in the <code>Account details</code> page of your AppVeyor account you see that it is connected as show in this image?</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/455125072018-06-19T22:18:49Z2018-06-19T22:18:51ZCan't import gitlab projects<div><p>Yes.<br>
AppVeyor was authorized 2 hours ago for read/write access to GitLab repositories as Tardo account. Your account authorizations.</p></div>Tardotag:help.appveyor.com,2012-11-13:Comment/455125072018-06-19T23:29:56Z2018-06-19T23:29:56ZCan't import gitlab projects<div><p>Can you send a screenshot of the error you are getting?</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/455125072018-06-20T15:12:05Z2018-06-20T15:12:07ZCan't import gitlab projects<div><p>Here ir the error....</p></div>Tardotag:help.appveyor.com,2012-11-13:Comment/455125072018-06-20T15:16:04Z2018-06-20T15:16:06ZCan't import gitlab projects<div><p>And in gitlab & AppVeyor....</p></div>Tardotag:help.appveyor.com,2012-11-13:Comment/455125072018-06-21T00:33:59Z2018-06-21T00:33:59ZCan't import gitlab projects<div><p>Can you try the following powershell command with your own api key and let me know if it returns successfully.<br></p>
<pre>
<code>Invoke-WebRequest https://gitlab.com/api/v4/projects?membership=true"&"order_by=updated_at"&"per_page=100 -Header @{Authentication="Bearer <your secret key>"} -Method Get -UseBasicParsing</code>
</pre></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/455125072018-07-01T23:51:32Z2018-07-01T23:51:34ZCan't import gitlab projects<div><p>Using.. <code>curl -H "Authentication=<SecretKey>" -X GET "https://gitlab.com/api/v4/projects?membership=true&order_by=updated_at&per_page=100"</code> I get <code>[]</code></p>
<p>SecretKey = Personal Access Token for API</p></div>Tardotag:help.appveyor.com,2012-11-13:Comment/455125072018-07-02T20:57:18Z2018-07-02T20:57:18ZCan't import gitlab projects<div><p>So there is no trace of a status code?</p>
<p>We need to find the reason why you are getting an empty response to a request for public project listings.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/455125072018-07-02T21:34:38Z2018-07-02T21:34:38ZCan't import gitlab projects<div><p>Actually, can you try this command instead.<br></p>
<pre>
<code>curl -H "PRIVATE-TOKEN:<your-secret-key>" -X GET "https://gitlab.com/api/v4/projects?membership=true"</code>
</pre></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/455125072018-07-03T22:06:59Z2018-07-03T22:07:01ZCan't import gitlab projects<div><p>I get <a href=""401">HTTP/1.1 502 Bad Gateway" after waiting a while...<br>
Using invalid token i get "{"message</a> Unauthorized"}" fast...</p></div>Tardotag:help.appveyor.com,2012-11-13:Comment/455125072018-07-03T22:35:40Z2018-07-03T22:35:40ZCan't import gitlab projects<div><p>Are you on a windows machine? If so, using cmd or powershell?</p>
<p>What if you just (when logged in to gitlab) point your browser to "<a href="https://gitlab.com/api/v4/projects?membership=true">https://gitlab.com/api/v4/projects?membership=true</a>"?</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/455125072018-07-08T00:32:14Z2018-07-08T00:32:15ZCan't import gitlab projects<div><p>I'm using Linux.</p>
<p>I get "GitLab is not responding" when try load the url.</p></div>Tardotag:help.appveyor.com,2012-11-13:Comment/455125072018-07-08T22:15:38Z2018-07-08T22:15:38ZCan't import gitlab projects<div><p>Well, that seems to be a problem <a href="https://gitlab.com/gitlab-org/gitlab-ce/issues/46063">some others</a> are facing with gitlab as well.</p>
<p>Perhaps you can test some other api calls (particular projects for example) and post your results there and see if anyone has any recommendations.</p></div>Owen McDonnell