GitFive icon indicating copy to clipboard operation
GitFive copied to clipboard

2FA issue: AttributeError: 'NoneType' object has no attribute 'find'

Open soxoj opened this issue 2 years ago • 2 comments

Installed by instruction with pipx, default python3 version is 3.11.5.

$ gitfive user soxoj




                   %%                   %%
                 (%%%%%,             (%%%%%,
                 %%%%%@@@@@@@@@@@@@@@@@%%%%%
                 %%%@@@@@@@@@(((@@@@@@@@@%%%
                 @@@@@@((@@@(((@@@((@@@@@@%
                 @@@@@@@((((@@@@@((((@@@@@@@
                @@@@((((@@&(@@@@@(@@@((((@@@@
               @@@@@(((((@@@@@@@@@@@((((%@@@@@
               @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
               @@@@@@@@@@@@@.....@@@@@@@@@@@@@
               @@@@@@@@@@@@@@@.@@@@@@@@@@@@@@@
                 @@@@@@@@@@@@,,,@@@@@@@@@@@@
           (((      @@@@@@@@@@@@@@@@@@@
              *((          @@@@@@@
                *((       @@@@@@@@@
                  (((((. @@@@@@@@@@@
                    (((((@@@@@@@@@@@&
                        @@@@@@@@@@@@@
                        @@@@@@@@@@@@@
                        .@@@@@@@@@@@#

                  By: mxrch (🐦 @mxrchreborn)
            Support my work on GitHub Sponsors ! 💖


[DEBUG] Cookies no more active, I re-login...
[+] Credentials found !

Checking API token validity...
[+] Token valid ! (scopes : delete_repo and repo)

[*] 2FA
Traceback (most recent call last):
  File "/Users/account/.local/bin/gitfive", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/account/.local/pipx/venvs/gitfive/lib/python3.11/site-packages/gitfive/gitfive.py", line 15, in main
    parse_args()
  File "/Users/account/.local/pipx/venvs/gitfive/lib/python3.11/site-packages/gitfive/lib/cli.py", line 51, in parse_args
    trio.run(username_mod.hunt, args.username, args.json)
  File "/Users/account/.local/pipx/venvs/gitfive/lib/python3.11/site-packages/trio/_core/_run.py", line 1946, in run
    raise runner.main_task_outcome.error
  File "/Users/account/.local/pipx/venvs/gitfive/lib/python3.11/site-packages/gitfive/modules/username_mod.py", line 19, in hunt
    await runner.login()
  File "/Users/account/.local/pipx/venvs/gitfive/lib/python3.11/site-packages/gitfive/lib/objects.py", line 489, in login
    await self.creds.check_and_login()
  File "/Users/account/.local/pipx/venvs/gitfive/lib/python3.11/site-packages/gitfive/lib/objects.py", line 343, in check_and_login
    await self.login()
  File "/Users/account/.local/pipx/venvs/gitfive/lib/python3.11/site-packages/gitfive/lib/objects.py", line 308, in login
    authenticity_token = body.find("form", {"action": "/sessions/two-factor"}).find("input", {"name": "authenticity_token"}).attrs["value"]
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'find'

soxoj avatar Oct 27 '23 19:10 soxoj

I got the same error

kittygirlyy avatar May 21 '24 18:05 kittygirlyy