[Dune-devel] Gitlab: Trouble using the API

Elias Pipping elias.pipping at fu-berlin.de
Mon Jun 19 21:12:33 CEST 2017

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.


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"


More information about the Dune-devel mailing list