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

[🐛] 404 response from Snyk API (solution) #11

Closed
JacobValdemar opened this issue Apr 2, 2021 · 8 comments
Closed

[🐛] 404 response from Snyk API (solution) #11

JacobValdemar opened this issue Apr 2, 2021 · 8 comments

Comments

@JacobValdemar
Copy link

Expected behaviour

Plugin works.

Actual behaviour

Plugin is recieving 404 responses from snyk

Steps to reproduce

Follow guide

Solution

My solution to this problem was to change the proxy to something like:

'/snyk':
    target: https://snyk.io/api/v1
    headers:
      User-Agent: tech-services/backstage-plugin/1.0
      Authorization:
        $env: SNYK_TOKEN
    pathRewrite:
      '^/proxy/snyk/': '/'

Maybe add this to the installation guide, that if you get 404 from the API you can try with some path rewrite :)

@aarlaud
Copy link
Contributor

aarlaud commented Apr 2, 2021

Hum... I'll try and reproduce on my side. Thanks for reporting this !

@aarlaud
Copy link
Contributor

aarlaud commented Apr 9, 2021

Will try to reproduce with a completely clean install, but in the meantime updated the README.

@dollopofsunshine
Copy link

I'm facing Error 404 - Failed fetching Projects list snyk data - even with the pathrewrite in my repository's catalog-info.yaml. Would you please help check

@dtbell99gp
Copy link

dollopofsunshine did you ever get back an answer on your issue or find resolution? I am having the same problem it appears my annotations are correct, and I have other projects that work but mine does not so my token should be fine. thx

@moby-codes
Copy link

dollopofsunshine did you ever get back an answer on your issue or find resolution? I am having the same problem it appears my annotations are correct, and I have other projects that work but mine does not so my token should be fine. thx

Were you able to fix this? I am still getting the same error also despite the path change

@jcospina
Copy link

jcospina commented Jul 5, 2023

I am getting the same error. Tried with the pathRewrite and different urls for the target but it won't work. Does anyone has any ideas on how to fix it?

@Nameer-Alkhayyat
Copy link

I'm also having the same issue, getting 404!

@Yowise
Copy link

Yowise commented Apr 25, 2024

Same here, I have the same error.

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

8 participants