Skip to content

[BUG] Invalid parameters #47

Open
Open
@FranciscoDadone

Description

@FranciscoDadone
Contributor

Describe the bug
Getting invalid parameters when trying to login using 2FA.

To Reproduce
curl -X 'GET'
'http://localhost:8000/auth/login'
-H 'accept: application/json'
-H 'Content-Type: application/x-www-form-urlencoded'
-d 'username=&password=&verification_code=<2FA CODE>'

Traceback
{
"detail": "Invalid Parameters",
"exc_type": "UnknownError"
}

Expected behavior
Get sessionid.

Additional context
Using docker container.

Activity

slouchd

slouchd commented on Jan 23, 2023

@slouchd

You need to make a POST not a GET. Also, only use the verification_code parameter if you require it.

Example:
curl -X 'POST'
'http://localhost:8000/auth/login'
-H 'accept: application/json'
-H 'Content-Type: application/x-www-form-urlencoded'
-d 'username=USERNAME_HERE&password=PASSWORD_HERE

Also take a look at the OpenAPI docs: http://0.0.0.0:8000/docs when the container is running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @adw0rd@slouchd@FranciscoDadone

      Issue actions

        [BUG] Invalid parameters · Issue #47 · subzeroid/instagrapi-rest