-
Notifications
You must be signed in to change notification settings - Fork 7
Unexpected token p in JSON at position 4 #14
Comments
I need more clarification on the steps to reproduce:
Does it mean that you want the backstage to open a pull request with a "starter" component-config definition file? If yes, then it doesn't have anything related to the argo-cd plugin, because it's not included in the annotations and thus it won't show up on the overview page.
And I don't know what this would mean too. |
Hi @mcalus3 , I've started from scratch in order to give you as much details as possible. I followed this guide: https://backstage.io/docs/getting-started/running-backstage-locally and after that I followed this instructions: https://github.com/RoadieHQ/backstage-plugin-argo-cd. I am registering a new component via this template: https://github.com/braghettos/gcptemplate/blob/main/template.yaml and argocd annotations are declared within the https://github.com/braghettos/gcptemplate/blob/main/%7B%7Bcookiecutter.component_id%7D%7D/catalog-info.yaml file. Now I've started the app, imported the component, create the component and the repo is available here: https://github.com/braghettos/argocdtest. I have an error on the Backstage GUI showing in the OVERVIEW tab that "Something went wrong. Please make sure that you installed: @roadiehq/backstage-plugin-argoCD plugin" - anyway there is a typo because it's @roadiehq/backstage-plugin-argo-cd. If I look at the backstage/packages/app/packages.json file, I can see the entry "@roadiehq/backstage-plugin-argo-cd": "^0.1.7". So now the error is different from the one that I got initially, let me know how can I help you for your analysis! |
I also tried with a newly npx @backstage/create-app, same problem reported in the screenshoft. |
More insights from the browser developers tool: Uncaught TypeError: Cannot read property 'name' of undefined The above error occurred in the component: |
@mcalus3 I found out that the token I was using was expired, I got a 403 but the error was not clear. I think that the issue can be closed, maybe it would be better to show a more clear error at frontend. |
Yes, and thanks to this issue i know exactly where to add the code for it :) |
I followed all the instructions on https://roadie.io/backstage/plugins/argo-cd/ but once I try to create a component, I get the following error:
Error occurred while fetching data. SyntaxError: Unexpected token p in JSON at position 4
Expected Behavior
Show the status of ArgoCD
Current Behavior
Nothing is shown within the frontend but the error 'Error occurred while fetching data. SyntaxError: Unexpected token p in JSON at position 4'
Possible Solution
Steps to Reproduce
Context
Your Environment
The text was updated successfully, but these errors were encountered: