From 5cd0aea7c809680371665104371f844213c1822d Mon Sep 17 00:00:00 2001 From: Matthias Guillitte Date: Sat, 1 Nov 2025 15:27:53 +0100 Subject: [PATCH] Fix "Waited 1 seconds for text [Sorry, your password was incorrect. Please double-check your password.]." --- app/Browser/Jobs/Instagram/InstagramAbstractJob.php | 2 +- app/Browser/Jobs/InstagramRepost/InstagramRepostJob.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Browser/Jobs/Instagram/InstagramAbstractJob.php b/app/Browser/Jobs/Instagram/InstagramAbstractJob.php index c303831..5458d37 100644 --- a/app/Browser/Jobs/Instagram/InstagramAbstractJob.php +++ b/app/Browser/Jobs/Instagram/InstagramAbstractJob.php @@ -88,7 +88,7 @@ abstract class InstagramAbstractJob extends BrowserJob implements ShouldBeUnique AllNotification::send(new JobDebugNotification($this->jobId, "Instagram login failed: Incorrect password.")); // Stop the job run throw new \Exception("Instagram login failed: Incorrect password."); - } catch (\Exception $e) { + } catch (\Facebook\WebDriver\Exception\TimeoutException $e) { // Not the expected error, continue } diff --git a/app/Browser/Jobs/InstagramRepost/InstagramRepostJob.php b/app/Browser/Jobs/InstagramRepost/InstagramRepostJob.php index 4531efc..fece381 100644 --- a/app/Browser/Jobs/InstagramRepost/InstagramRepostJob.php +++ b/app/Browser/Jobs/InstagramRepost/InstagramRepostJob.php @@ -71,6 +71,8 @@ class InstagramRepostJob extends InstagramAbstractJob implements ShouldBeUniqueU sleep(2); $this->signin($browser); sleep(2); + $this->removePopups($browser); + sleep(2); $this->repostLatestPosts($browser); sleep(5);