diff --git a/src/org/org.ts b/src/org/org.ts index c061b89b3f..e498e08332 100644 --- a/src/org/org.ts +++ b/src/org/org.ts @@ -699,7 +699,24 @@ export class Org extends AsyncOptionalCreatable { method: 'GET', }; const conn = this.getConnection(); - await conn.request(requestInfo); + 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('