Skip to content

[Bug]: Video2Commons fail during login: OAuthException Unexpect request token key #280

@Mathglot

Description

@Mathglot

Contact Details

mathglot7@gmail.com

What happened?

Following instructions at https://commons.wikimedia.org/wiki/Commons:Video2commons, and attempting to execute step 1, Visit https://video2commons.toolforge.org/ and log in. It went to an Oauth page with a pop-up dialog which asked permission to allow the app access to whatever, and I clicked the button. Within a few seconds, I got a traceback error message. I will try the same thing on another browser, to see what happens.

Expected: login to complete, so I could continue to Step 2, but it never got that far.

What browser(s) are you experiencing the problem on?

7.7.3851.66 (Official Build) (64-bit), Chromium Version 142.0.7444.245. Windows 10 Version 22H2 (Build 19045.6466)

Relevant error messages

Traceback (most recent call last):
  File "/data/project/video2commons/www/python/venv/lib/python3.11/site-packages/flask/app.py", line 917, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/project/video2commons/www/python/venv/lib/python3.11/site-packages/flask/app.py", line 902, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/project/video2commons/www/python/src/../../../video2commons/frontend/app.py", line 231, in logincallback
    access_token = handshaker.complete(request_token, request.query_string)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/project/video2commons/www/python/venv/lib/python3.11/site-packages/mwoauth/handshaker.py", line 106, in complete
    return complete(
           ^^^^^^^^^
  File "/data/project/video2commons/www/python/venv/lib/python3.11/site-packages/mwoauth/functions.py", line 161, in complete
    raise OAuthException(
mwoauth.errors.OAuthException: Unexpect request token key '5bcfb07d864892400e6f7aa07f4956ba', expected '9b669f05cda5d0cd893ccf90ce4f8b56'.

Follow-up on another browser

I am trying on Opera One (version: 125.0.5729.49) and it got past the OAuth step no problem (and is now sitting there with 'your task is pending'; not clear if anything is happening, but the bug did not occur).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions