Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error "wrong project_slug or project_id" #715

Open
shirish539 opened this issue Feb 10, 2025 · 1 comment
Open

Getting error "wrong project_slug or project_id" #715

shirish539 opened this issue Feb 10, 2025 · 1 comment

Comments

@shirish539
Copy link

shirish539 commented Feb 10, 2025

I have configured the GitLab plugin by following the doc https://github.com/immobiliare/backstage-plugin-gitlab.

I have the private instance of Gitlab and the configuration is as below.

In app-config.yaml

integrations:
  gitlab:
    - host: 'myhost'
      token: 'XXXXXXXXXXXXXX'
      apiBaseUrl: 'https://my-domain/api/v4'
      allowedKinds: ['Component', 'Resource']

proxy:
    '/gitlab':
    target: https://my-domain
    headers:
      PRIVATE-TOKEN: 'XXXXXXXXXXXXXX'
    changeOrigin: true
    secure: true

In Catalog-info.yaml I have :-

kind: Component
metadata:
  name: testApp
  tags:
    - lang:golang
  annotations:
    gitlab.com/project-id: '40520'  # Replace with your actual GitLab project ID
    #gitlab.com/project-slug: 'username/testapp' # group_name/project_name

I have verified that my project-id and Access token are correct. I am not able to understand what exactly I am doing wrong.

@antoniomuso
Copy link
Contributor

Hi @shirish539, you are using a mix of old and new configurations. The plugin doesn't use anymore the proxy. I suggest removing it and following the plugin documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants