RoadieHQ / marketing-site

A Gatsby app which generates all content on the Roadie marketing site.
https://roadie.io
Apache License 2.0
12 stars 32 forks source link

JIRA Plugin 404 error #1200

Open buaydin opened 10 months ago

buaydin commented 10 months ago

I follow the document for backstage jira plugin and made the configurations. https://roadie.io/backstage/plugins/jira/
I'm getting failed to fetch data, status 404: Not Found error on Components UI Page. Also I'm getting a warning about proxy.endpoints. proxy warn Configuring proxy endpoints in the root 'proxy' configuration is deprecated. Move this configuration to 'proxy.endpoints' my app-config.yaml file; proxy: '/jira/api': target: 'jira.intertech.com.tr' headers: Authorization: $env: JIRA_TOKEN Accept: 'application/json' Content-Type: 'application/json' X-Atlassian-Token: 'nocheck' User-Agent: "MY-UA-STRING" When I switch my configuration to use proxy.endpoints. yaml gives errors that it's expection Authorization to be string. When I use this configuration I'm getting 401 Unauthorized error. Am I missing something? Is that document still valid?

proxy: endpoints: '/jira/api': target: 'https://jira.intertech.com.tr' headers: Authorization: 'Basic ' Accept: 'application/json' Content-Type: 'application/json' X-Atlassian-Token: 'nocheck' User-Agent: "MY-UA-STRING"

csp: connect-src: ["'self'", 'http:', 'https:'] img-src:

"'self'" and 'data' are from the backstage default but must be set since img-src is overriden

  - "'self'"
  - 'data:'
  # Allow your Jira instance for @roadiehq/backstage-plugin-jira
  - 'https://jira.intertech.com.tr'   
roadie-bot commented 10 months ago

https://app.shortcut.com/larder/story/18446

buaydin commented 10 months ago

My components.yaml file;

apiVersion: backstage.io/v1alpha1 kind: Component metadata: name: TildaTestApi annotations: sonarqube.org/project-key: DevTildaTestApi jenkins.io/job-full-name: V2_GIT/TildaTestApi jira/project-key: ITSM links:

eniskurtayyilmaz commented 3 months ago

Hey,

I got the same case, and I suspect the doc is outdated.