diff --git a/src/workers/CommandorPage.js b/src/workers/CommandorPage.js index e22feef..6498e3e 100644 --- a/src/workers/CommandorPage.js +++ b/src/workers/CommandorPage.js @@ -384,6 +384,14 @@ class CommandorPage { await this.page.reload() } else if (currentPage.url().includes("sorry")) { await this.resetBrowser() + } else if (content.includes("PROXY_CONNECTION_FAILED")) { + logWithDevice("PROXY_CONNECTION_FAILED, will reload page", this.device); + await delay(2000) + await this.page.reload() + } else if (content.includes("ERR_NETWORK_CHANGED")) { + logWithDevice("ERR_NETWORK_CHANGED, will reload page", this.device); + await delay(2000) + await this.page.reload() } else { if (currentPage.url() === RDV_URL) { await this.fillFields(this.page);