[Dune-devel] Gitlab: Trouble using the API

Steffen Müthing steffen.muething at iwr.uni-heidelberg.de
Tue Jun 20 14:45:22 CEST 2017


Hi Elias,

thanks for letting us know! There was a small error in the configuration of the nginx load balancer
that caused it to do URL-decoding. It should work now.

Steffen

> Am 19.06.2017 um 21:12 schrieb Elias Pipping <elias.pipping at fu-berlin.de>:
> 
> Dear list,
> 
> I find myself unable to access some of the API that gitlab should be supporting with the instance running on gitlab.dune-project.org;
> I'm wondering if anyone has an idea why that is. It's the first time for me that I'm accessing the gitlab API from the command-line
> so I could be doing something stupid but the instance running at git.imp.fu-berlin.de behaves the way I'd expect from the docs, i.e.
> 
> http://docs.gitlab.com/ce/api/branches.html
> 
> First the good news: This works:
> 
> (1) Searching for a repository: Here, on the FU instance:
> 
> % curl 'https://git.imp.fu-berlin.de/api/v4/projects/?search=dune-matrix-vector' 2>/dev/null | python -m json.tool
> [
>   {
>       "http_url_to_repo": "https://git.imp.fu-berlin.de/agnumpde/dune-matrix-vector.git",
>       "id": 313,
>       "name": "dune-matrix-vector",
>       "name_with_namespace": "agnumpde / dune-matrix-vector",
>       "path": "dune-matrix-vector",
>       "path_with_namespace": "agnumpde/dune-matrix-vector",
>       "web_url": "https://git.imp.fu-berlin.de/agnumpde/dune-matrix-vector"
>   }
> ]
> 
> And here on the dune-project.org instance:
> 
> % curl 'https://gitlab.dune-project.org/api/v4/projects/?search=dune-localfunctions' 2>/dev/null | python -m json.tool
> [
>   ...
>   {
>       "http_url_to_repo": "https://gitlab.dune-project.org/core/dune-localfunctions.git",
>       "id": 138,
>       "name": "dune-localfunctions",
>       "name_with_namespace": "Core Modules / dune-localfunctions",
>       "path": "dune-localfunctions",
>       "path_with_namespace": "core/dune-localfunctions",
>       "web_url": "https://gitlab.dune-project.org/core/dune-localfunctions"
>   }
> ]
> %
> 
> Now the bad news: This doesn't:
> 
> (2) Listing the branches in a repository: First on the FU instance, where it works
> 
> % curl 'https://git.imp.fu-berlin.de/api/v4/projects/agnumpde%2Fdune-matrix-vector/repository/branches' 2>/dev/null | python -m json.tool
> ...
> %
> 
> And now on dune-project.org where it does not work:
> 
> % curl 'https://gitlab.dune-project.org/api/v4/projects/core%2Fdune-localfunctions/repository/branches' 2>/dev/null | python -m json.tool
> {
>   "error": "404 Not Found"
> }
> %
> 
> 
> 
> Elias
> _______________________________________________
> Dune-devel mailing list
> Dune-devel at lists.dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-devel
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: Message signed with OpenPGP
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20170620/c3b0fcf9/attachment.sig>


More information about the Dune-devel mailing list