From ac78de4f76f133b7cbe14f3f5b55169e73f97033 Mon Sep 17 00:00:00 2001 From: mshanemc Date: Tue, 14 Nov 2023 11:03:26 -0600 Subject: [PATCH] refactor: revert #980 in favor of a jsforce solution --- messages/org.md | 10 ---------- src/org/org.ts | 12 ++---------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/messages/org.md b/messages/org.md index 97524ef844..d4dddcc81e 100644 --- a/messages/org.md +++ b/messages/org.md @@ -65,13 +65,3 @@ We found more than one SandboxProcess with the SandboxName %s. # sandboxNotResumable The sandbox %s cannot resume with status of %s. - -# UnexpectedResponse - -Unexpected response from the platform - -# UnexpectedResponse.actions - -- Check that the instance URL is correct and the org still exists. - -- See what's at the URL that's causing the problem: %s. diff --git a/src/org/org.ts b/src/org/org.ts index 7b7d2b199c..4910bc1095 100644 --- a/src/org/org.ts +++ b/src/org/org.ts @@ -698,17 +698,9 @@ export class Org extends AsyncOptionalCreatable { url: this.getConnection().baseUrl(), method: 'GET', }; + const conn = this.getConnection(); - try { - await conn.request(requestInfo); - } catch (e) { - // an html error page like https://computing-connect-6970-dev-ed.scratch.my.salesforce.com/services/data/v50.0 - // where the message is an entire html page - if (e instanceof Error && (e.name.includes('ERROR_HTTP') || e.message.includes('