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 <[email protected]> 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 [email protected].
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to