-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
1.2.1, ros-plugin-1.2.1
-
False
-
-
False
-
-
Description of the problem:
When the backstage api returns a 500 error, specifically an issue with the token (hybrid cloud console token in this case), the ROS plugin FE simply returns an empty page without any indication of an error. Devtools does show the 500 error though.
In certain situations the optimization plugin FE will display errors, which adds to the confusion in this situation as no errors are displayed.
Here is the optimization page:
Devtools shows the errors:
Error logs from backstage pod:
│ backstage-backend 2025-09-29T15:39:22.147Z redhat-resource-optimization info Requesting new access token trace_id="58753beb3d5962106df1d0118c78cdb9" span_id="c05730f20870fd83" trace_flags="01" │ │ backstage-backend 2025-09-29T15:39:22.398Z redhat-resource-optimization error Request failed with status 500 Unauthorized type="errorHandler" stack="Error: Unauthorized\n at /opt/app-root/src/dynamic-plugins-root/red-hat-developer-hub-plugin-redhat-resource-optimization-backend/dist/routes/token.cjs.js:44:11\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)" trace_ │ │ backstage-backend 2025-09-29T15:39:22.399Z rootHttpRouter info [2025-09-29T15:39:22.399Z] "GET /api/redhat-resource-optimization/token HTTP/1.1" 500 123 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36" type="incomingRequest" date="2025-09-29T15:39:22.399Z" method="GET" url="/api/redhat-resource-optimization/token" status=500 httpVersion="1.1" │ │ backstage-backend 2025-09-29T15:39:22.521Z rootHttpRouter info [2025-09-29T15:39:22.521Z] "GET /api/proxy/cost-management/v1/recommendations/openshift?offset=0&limit=10&order_by=last_reported&order_how=desc HTTP/1.1" 401 120 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36" type="incomingRequest" date="2025-09-29T15:39:22.521Z" method="GET" url │ │ backstage-backend 2025-09-29T15:39:22.577Z redhat-resource-optimization info Requesting new access token trace_id="326a4be4941ad37186019a40163b7608" span_id="068e851213c39ce8" trace_flags="01" │ │ backstage-backend 2025-09-29T15:39:22.659Z redhat-resource-optimization error Request failed with status 500 Unauthorized type="errorHandler" stack="Error: Unauthorized\n at /opt/app-root/src/dynamic-plugins-root/red-hat-developer-hub-plugin-redhat-resource-optimization-backend/dist/routes/token.cjs.js:44:11\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)" trace_ │ │ backstage-backend 2025-09-29T15:39:22.660Z rootHttpRouter info [2025-09-29T15:39:22.660Z] "GET /api/redhat-resource-optimization/token HTTP/1.1" 500 123 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36" type="incomingRequest" date="2025-09-29T15:39:22.660Z" method="GET" url="/api/redhat-resource-optimization/token" status=500 httpVersion="1.1" │
Screencast_20250929_113054.webm
How reproducible:
100%
Steps to reproduce:
1. Install the ROS plugin and use non-existent hybrid cloud service account credentials in the configuration
2. Browse to the optimization plugin page on RHDH
Actual results:
Blank page with no indication of a failure
Expected results:
A relevant error is displayed.
- is related to
-
FLPATH-2746 ROS plugin logs are confusing when hybrid cloud sa creds are invalid
-
- New
-