From ace07b62e9f805ce7561e104e15bddcf3ef98794 Mon Sep 17 00:00:00 2001 From: aptmac Date: Fri, 31 Jan 2025 14:12:29 -0500 Subject: [PATCH] use the ctx url for the 202 fromFetch --- src/app/Shared/Services/Report.service.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/Shared/Services/Report.service.tsx b/src/app/Shared/Services/Report.service.tsx index 684e9a16d..343c57482 100644 --- a/src/app/Shared/Services/Report.service.tsx +++ b/src/app/Shared/Services/Report.service.tsx @@ -72,7 +72,7 @@ export class ReportService { if (resp.status == 202) { let subj = new Subject(); resp.text().then((jobId) => { - this.jobIds.set(jobId, resp.headers.get('Location') || parts[0]); + this.jobIds.set(jobId, parts[0]); this._jobCompletion .asObservable() .pipe(filter((id) => id === jobId)) @@ -80,7 +80,7 @@ export class ReportService { const jobUrl = this.jobIds.get(id); if (!jobUrl) throw new Error(`Unknown job ID: ${id}`); this.jobIds.delete(id); - fromFetch(jobUrl, parts[1]).subscribe((resp) => { + fromFetch(parts[0], parts[1]).subscribe((resp) => { if (resp.ok && resp.status === 200) { resp .text()