handle Request Time-out error
This commit is contained in:
@@ -396,6 +396,10 @@ class CommandorPage {
|
|||||||
logWithDevice("ERR_TIMED_OUT, will reload page", this.device);
|
logWithDevice("ERR_TIMED_OUT, will reload page", this.device);
|
||||||
await delay(2000)
|
await delay(2000)
|
||||||
await this.page.reload()
|
await this.page.reload()
|
||||||
|
} else if (content.includes("408 Request Time-out")) {
|
||||||
|
logWithDevice("Request Time-out, will reload page", this.device);
|
||||||
|
await delay(2000)
|
||||||
|
await this.page.reload()
|
||||||
} else {
|
} else {
|
||||||
if (currentPage.url() === RDV_URL) {
|
if (currentPage.url() === RDV_URL) {
|
||||||
await this.fillFields(this.page);
|
await this.fillFields(this.page);
|
||||||
|
|||||||
Reference in New Issue
Block a user