Skip to content

backstage-plugin-launchdarkly plugin seems to not send requests #2008

@via-justa

Description

@via-justa

I'm trying to integrate LaunchDarkly in a new Backstage installation according to the manual, and I do not see any outgoing requests sent from Backstage to LaunchDarkly.

The logs do show that the request is sent from the browser to the server

2025-08-07T05:05:48.694Z rootHttpRouter info [2025-08-07T05:05:48.694Z] "GET /api/proxy/launchdarkly/api/v2/flags/default?limit=100&offset=0&env=production HTTP/1.1" 401 588 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15" type="incomingRequest" date="2025-08-07T05:05:48.694Z" method="GET" url="/api/proxy/launchdarkly/api/v2/flags/default?limit=100&offset=0&env=production" status=401 httpVersion="1.1" userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15" contentLength=588 referrer="http://localhost:3000/"
2025-08-07T05:05:48.702Z rootHttpRouter info [2025-08-07T05:05:48.702Z] "POST /api/proxy/launchdarkly/api/v2/projects/default/environments/production/flags/evaluate HTTP/1.1" 401 514 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15" type="incomingRequest" date="2025-08-07T05:05:48.702Z" method="POST" url="/api/proxy/launchdarkly/api/v2/projects/default/environments/production/flags/evaluate" status=401 httpVersion="1.1" userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15" contentLength=514 referrer="http://localhost:3000/"

But in LaunchDarkly there are no requests coming.

Expected Behavior

launchdarkly plugin sends requests via the backstage proxy.

Current Behavior

No requests to https://app.launchdarkly.com/api are sent, and the cards show an error

Error: Failed to retrieve LaunchDarkly flags for project default: Unauthorized

When using mitmproxy with the following config to check the sent requests, nothing is showing up

proxy:
  endpoints:
    '/launchdarkly/api':
      # target: https://app.launchdarkly.com/api
      target: http://localhost:8080
      headers:
        Authorization: ${LAUNCHDARKLY_API_KEY}

Steps to Reproduce

On a fresh install of Backstage via the install app, add the integration according to the manual in the README.

Possible Solution

Context

Your Environment

"@roadiehq/backstage-plugin-launchdarkly": "^1.3.0"
"@backstage/plugin-catalog-react": "^1.19.1"
  • @backstage/plugin-catalog-react version:
  • @backstage/integration version:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions