Skip to content

BadRequestKeyError when attempting to retrieve fb access token #131

@Klexus1

Description

@Klexus1

Error:
werkzeug.exceptions.BadRequestKeyError: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand.

To replicate the behaviour:
Clone the repository (as of 20 . 3. 2021)
Install requirements (with Werkzeug==0.16.1)
Enter your credentials in tinder_config_ex.py

Run.

Full traceback:

Traceback (most recent call last):
  File "C:/test-projekty/tinder-api/Tinder/tinder_config_ex.py", line 5, in <module>
    fb_access_token = fb_auth_token.get_fb_access_token(fb_username, fb_password)
  File "C:\test-projekty\tinder-api\Tinder\fb_auth_token.py", line 16, in get_fb_access_token
    f["pass"] = password
  File "C:\test-projekty\tinder-api\Tinder\tinderenv\lib\site-packages\robobrowser\forms\form.py", line 216, in __setitem__
    self.fields[key].value = value
  File "C:\test-projekty\tinder-api\Tinder\tinderenv\lib\site-packages\werkzeug\datastructures.py", line 795, in __getitem__
    raise exceptions.BadRequestKeyError(key)
werkzeug.exceptions.BadRequestKeyError: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand.

Process finished with exit code 1

The program fails on s.open(FB_AUTH) line 14, fb_auth_token.py

Note: the FB_AUTH is a valid url. Tried in browser and works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions