From dd47e7bdebd03988f97f4dadb7043018af2e4735 Mon Sep 17 00:00:00 2001 From: Jamie Tang Date: Fri, 20 Jun 2025 14:42:36 -0700 Subject: [PATCH 1/2] Update StepInitAnalyzeUrl.tsx Signed-off-by: Jamie Tang --- .../src/components/StepInitAnalyzeUrl/StepInitAnalyzeUrl.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/catalog-import/src/components/StepInitAnalyzeUrl/StepInitAnalyzeUrl.tsx b/plugins/catalog-import/src/components/StepInitAnalyzeUrl/StepInitAnalyzeUrl.tsx index 5a6cad055c..2100d3da81 100644 --- a/plugins/catalog-import/src/components/StepInitAnalyzeUrl/StepInitAnalyzeUrl.tsx +++ b/plugins/catalog-import/src/components/StepInitAnalyzeUrl/StepInitAnalyzeUrl.tsx @@ -130,7 +130,7 @@ export const StepInitAnalyzeUrl = (props: StepInitAnalyzeUrlProps) => { } } } catch (e: any) { - setError(e?.data?.error?.message ?? e.message); + setError(e?.body?.error?.message ?? e.message); setSubmitted(false); } }, From 406b8b8e6a708567caa5d159b94cfb787e236bee Mon Sep 17 00:00:00 2001 From: Jamie Tang Date: Fri, 20 Jun 2025 15:31:57 -0700 Subject: [PATCH 2/2] Added changeset Signed-off-by: Jamie Tang --- .changeset/stupid-donuts-sit.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/stupid-donuts-sit.md diff --git a/.changeset/stupid-donuts-sit.md b/.changeset/stupid-donuts-sit.md new file mode 100644 index 0000000000..e829d49843 --- /dev/null +++ b/.changeset/stupid-donuts-sit.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog-import': patch +--- + +Fixed bug with error message since ResponseError is now thrown from CatalogClient