Hello Christian,

mmh using using the parameter for “username“ and „password“ in create() 
makes sense ... but I get the same exception.

1.    I’m using v2.5.4 of reviewboard.
2.    Of course the repository exists :). I can add it in reviewboard by 
using the GUI. Now I delete it and try to add it by using the script.
3.    Finally this script should add every repository from GitLab to 
reviewboard … best in real time when it’s generated in Git

What are the specific GitLab fields? I assume that the parameters “tool” 
and "path" are responsible for it.

regards
Daniel

Am Montag, 6. März 2017 20:50:01 UTC+1 schrieb Christian Hammond:
>
> Hi Daniel,
>
> The username and password being supplied to Client() is for your own 
> Review Board user. I don't see any credentials being passed for the 
> repository in the create call, and that's where it's complaining. HTTP vs 
> HTTPS isn't a factor. 
>
> I also don't see anything in that call specifying that it's a GitLab 
> service or specifying GitLab-specific fields. You won't be able to create a 
> repository entry that's plain Git and point it to a GitLab. The two work 
> very differently.
>
> A few additional questions to best help you:
>
> 1) What version of Review Board are you using?
>
> 2) Does this repository on GitLab already exist?
>
> 3) What's the ultimate purpose of the script?
>
> Christian 
>
>
> On Mon, Mar 6, 2017 at 09:14 spacekangaroo <space-k...@web.de 
> <javascript:>> wrote:
>
>> Hello everybody,
>>
>> I’ve tried to create a GitLab in ReviewBoard. It looks simple first
>>
>> from rbtools.api.client import RBClient
>> client = Client('http://localhost:8080/',username='username',password=
>> 'password')
>> root = client.get_root()
>> repos = root.get_repositories()
>> repos.create(name='myRepository', tool='Git', path=
>> 'server:myGroup/myTestRepository.git', trust_host=1)
>>
>> I get an exception:
>>
>> APIError: Unable to authenticate with the repository using the provided 
>> credentials. (HTTP 403, API Error 218)
>>
>> … the GitLab exists, user and password are correct too. I see reasons for 
>> HTTP 403 exception are no authorization or a *https* URL is calling by 
>> *http*.
>>
>>
>> Is it true? Is the create() only possible if git ist powered by http or 
>> is an another problem possible?
>>
>> Thanks Daniel
>>
>> -- 
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons: 
>> https://rbcommons.com/
>> Happy user? Let us know! https://www.reviewboard.org/users/
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to reviewboard...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
> -- 
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to