Unable to get GitLab Issue(s)

Describe the problem/error/question

I have created an access token with the owner role within a Gitlab Project, and have successfully tested the connection when adding the credential to n8n.

However, when I try to add a Gitlab node, I am getting an Error 404 no matter what combination of project owner/project name/issue number I use.

If the URL of the issue were:
https://gitlab.com/pumpernickelpickle/mean/greencheese-support/-/issues/1

I’ve tried to use the following parameters:
Resource: Issue
Operation: Get
Project Owner: pumpernickelpickle
Project Name: mean/greencheese-support
Issue Number: 1

Resource: Issue
Operation: Get
Project Owner: pumpernickelpickle
Project Name: pumpernickelpickle/mean/greencheese-support
Issue Number: 1

But the error occurs regardless of what I put in the Project Name.

As a test, I tried using Make.com to make the same query to Project Name pumpernickelpickle/mean/greencheese-support and Issue IID 1, and the request went through and returned an output, so the Access Token does not appear to be the issue.

Any guidance on how I can get this working would be very much appreciated.

What is the error message (if any)?

The resource you are requesting could not be found
404 Project Not Found

Please share your workflow

Share the output returned by the last node

{ "message": "404 Project Not Found" }

Information on your n8n setup

  • n8n version: 1.52.2
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • Operating system: Ubuntu 22.04

Hey @ThomasLu_EarthDaily,

What is the actual repostiory name and username? I suspect the user is pumpernickelpickle but the tricky bit will be the repo name is it actually /mean/greencheese-support/ or /mean/? It could be that we have an issue when the name contains a /

1 Like

Hi Jon,

Thanks for the response.

When you pointed out that the issue could have been due to the /, and I noticed that the HTTP request I made that worked was https://gitlab.com/api/v4/projects/pumpernickelpickle%2Fmean%2Fgreencheese-support/issues/, I tried replacing the slash with %2f in the Gitlab node and it worked!!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.