-
Notifications
You must be signed in to change notification settings - Fork 26
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 - Failed fetching Projects list snyk data #124
Comments
Hello there, I'm not able to reproduce this issue but noticed something wrong in the readme instruction. |
Hey @aarlaud, it still does not work for us. Here is the branch/pr you can use to reproduce the issue. redhat-developer/rhdh#112 |
hum.... and you're sure the token you're using has access to the project ids you're adding? thanks |
Making notes for action. |
I am having the exact same issue. This is the config for the proxy:
And i'm getting Error 404 - Failed fetching Targets list snyk data. When testing on postman hitting the snyk api directly it works (which means the token is valid) but the backstage proxy doesn't |
Apparently, in the meantime the proxy settings have to be updated to this: '/snyk':
target: https://api.snyk.io/
headers:
User-Agent: tech-services/backstage-plugin/1.0
Authorization:
$env: SNYK_TOKEN
pathRewrite:
'^/api/proxy/snyk/': '/' |
Hum... my setup works with this alone
Looks like you need a rewrite path for some reason. I'd like to add this to the README, but I'm unclear why you need it and I don't, and why it doesn't seem to be for everyone. |
I did not change anything around proxying except for the entry for this plugin. |
node -v
: 18.12.1yarn -v
: 3.4.1snyk-api-import ...
, ...) 1.2.7Expected behaviour
Please share expected behaviour.
<EntitySnykContent />
should render successfully without a 404 error.Actual behaviour
Please share problematic behaviour you are seeing.
<EntitySnykContent />
renders with a 404 error.Steps to reproduce
Please share minimal steps needed to reproduce your issue. Ideally
a paired down manifest / project to showcase the problem that can also
be used for testing.
I followed the README guide.
Steps I took to try to debug:
Debug log
If applicable, please add
DEBUG=*snyk* <command here>
before your command and include the output here **ensuring to remove any sensitive/personal details or tokens.N/A
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: