Merge pull request #33658 from backstage/freben/clarify-fetch-failures

Add FetchMiddlewares.clarifyFailures and improve permission error handling
This commit is contained in:
Fredrik Adelöw
2026-03-29 12:51:04 +02:00
committed by GitHub
9 changed files with 177 additions and 11 deletions
@@ -0,0 +1,5 @@
---
'@backstage/app-defaults': patch
---
Added `FetchMiddlewares.clarifyFailures()` to the default fetch API middleware stack.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-app-api': minor
---
Added `FetchMiddlewares.clarifyFailures()` which replaces the uninformative "TypeError: Failed to fetch" with a message that includes the request method and URL.
@@ -0,0 +1,5 @@
---
'@backstage/frontend-app-api': patch
---
Wrapped extension permission authorization in a try/catch to surface errors as `ForwardedError` with a clear message.