Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
soxoj opened this issue Oct 27, 2023 · 1 comment
Open

Comments

@soxoj
Copy link
Contributor

soxoj commented Oct 27, 2023

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'
@kittygirlyy
Copy link

I got the same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants