GithubHelp home page GithubHelp logo

Comments (9)

satrox28 avatar satrox28 commented on June 18, 2024

Hi @naramck

Please make sure of the access token used for the proxy can read those projects.

curl --request GET --header "PRIVATE-TOKEN: <TOKEN_USED_BY_BACKSTAGE_PROXY_FOR_GITLAB>" https://gitlabhost.com/api/v4/projects/<project_id>

from backstage-plugin-gitlab.

satrox28 avatar satrox28 commented on June 18, 2024

@naramck were you able to resolve the issue?.

from backstage-plugin-gitlab.

naramck avatar naramck commented on June 18, 2024

Hi @satrox28,
The issue still exists. I tested the curl command. The proxy token has access to the projects. Seems like the backend proxy api call returning 404, its not even reaching to the gitlab client that is running on backstage backend api.

from backstage-plugin-gitlab.

naramck avatar naramck commented on June 18, 2024

@satrox28,

This seems to be an issue with proxy plugin. The url that is being sent to proxy from browser (GitlabCIClient) is shown as
backstage.domain/api/proxy/gitlabci/group%2Fprojectname. but the proxy converts %2F to a forward slash and tries to send that URL to gitlab rest api which returns 404.

from backstage-plugin-gitlab.

satrox28 avatar satrox28 commented on June 18, 2024

Hi @naramck

Can you change it to project id in annotation and try.

from backstage-plugin-gitlab.

satrox28 avatar satrox28 commented on June 18, 2024

Hi @naramck
Any update?

from backstage-plugin-gitlab.

naramck avatar naramck commented on June 18, 2024

HI @satrox28,
It is still an open issue. I spent bit of time, and based on what i observed, the issue seems to be in http-proxy-middleware.

from backstage-plugin-gitlab.

satrox28 avatar satrox28 commented on June 18, 2024

@naramck

were you able to check if the below proxy config for gitlabci exist on app-config.yaml?.

  '/gitlabci':
    target: https://gitlab.com/api/v4 or change to your custom gitlab host
    allowedMethods: ['GET']
    headers:
      PRIVATE-TOKEN: '<TOKEN>'

from backstage-plugin-gitlab.

naramck avatar naramck commented on June 18, 2024

@satrox28 yes, i have the correct config and token.

from backstage-plugin-gitlab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.