question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to enter 2FA into ibeam - change in login page html?

See original GitHub issue

Describe the bug Since around 2 PM Sunday UK time I got into a fail loop authenticating with these error messages

2022-02-13 14:07:17,356|I| Gateway session found but not authenticated, authenticating...
2022-02-13 14:07:25,115|I| Credentials correct, but Gateway requires two-factor authentication.
2022-02-13 14:07:25,116|I| Attempting to acquire 2FA code from: GoogleMessagesTwoFaHandler(driver_path=/usr/bin/chromedriver)
2022-02-13 14:07:30,731|I| Your requested authentication code: 464625
2022-02-13 14:07:31,752|E| Error encountered while acquiring 2FA code.
Traceback (most recent call last):
  File "/srv/ibeam/src/authenticate.py", line 304, in handle_two_fa
    two_fa_code = two_fa_handler.get_two_fa_code()
  File "/srv/ibeam/src/two_fa_handlers/google_msg_handler.py", line 73, in get_two_fa_code
    sms_list_el[0].click()  # mark message as read
  File "/opt/venv/lib/python3.7/site-packages/selenium/webdriver/remote/webelement.py", line 80, in click
    self._execute(Command.CLICK_ELEMENT)
  File "/opt/venv/lib/python3.7/site-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute
    return self._parent.execute(command, params)
  File "/opt/venv/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/opt/venv/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element <div _ngcontent-iwo-c103="" dir="auto" class="snippet-text ng-star-inserted">...</div> is not clickable at point (163, 194). Other element would receive the click: <div id="loader" aria-hidden="true" dir="ltr" style="display: flex;">...</div>
  (Session info: headless chrome=90.0.4430.212)


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/srv/ibeam/src/authenticate.py", line 309, in handle_two_fa
    raise RuntimeError('Error encountered while acquiring 2FA code.') from two_fa_exception
RuntimeError: Error encountered while acquiring 2FA code.
2022-02-13 14:07:31,752|W| No 2FA code returned. Aborting authentication.

To Reproduce Steps to reproduce the behavior: Authenticate using 2FA with Google Messages.

Environment Docker image or standalone: voyz/ibeam 0.4.0-rc6 e3d3b268f7cc

Suggest a Fix I did try to debug the problem.

The element id hasn’t changed.

However it appears that maybe they have changed things so that you need to click into the 2FA field first before typing into it. Am only guessing, but the fact that JavaScript is run on focus suggests that focusing the element is important.

<input type="text" maxlength="8" id="chlginput" autocomplete="off" name="chlginput" class="form-control" onfocus="enableSubmit()" placeholder="Security Code">

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:28 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
matthewrobertbellcommented, Apr 29, 2022

@Voyz this was fixed in one of the release candidates, thank you!

2reactions
Qarjcommented, Apr 16, 2022

I just installed 0.4.0 from docker hub, seems to be working great so far with 2FA, thanks Voyz!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem Solving Login Issues with Two-Factor Authentication
If you reached this page by clicking a link while signing in, it means your organization has turned on two-factor authentication.
Read more >
Authentication options | Login.gov
Select “Enable” next to “Authentication app” and follow the instructions to scan or enter a code associating your authentication app with your account....
Read more >
Common problems with two-step verification for a work or ...
Sign in to your account but select the Sign in another way link on the Two-factor verification page. Change sign in verification method....
Read more >
Two-factor authentication - GitLab Docs
When 2FA is enabled, you can't use your password to authenticate with Git over ... Enter your username or email, and password, on...
Read more >
How to set up two-factor authentication on your online accounts
On the home screen, go to “Settings” > “Account” > “Manage account” > “Account security,” and select two-step verification. Toggle the switch to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found