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

Voi: 401 error #279

Open
dr-who123 opened this issue May 9, 2024 · 1 comment
Open

Voi: 401 error #279

dr-who123 opened this issue May 9, 2024 · 1 comment

Comments

@dr-who123
Copy link

Hi,

I had a working scraper for Voi, but since some time I am getting 401 errors when connecting to the API. I even tried it with a new token generated from browser stack, but even the simple access token request returns a 401 error:

import requests

token = "ey..."

body = {"authenticationToken": token}

r = requests.post("https://api.voiapp.io/v1/auth/session", json=body)

print(r)

Does anyone know how to fix this? Thanks a lot!

@BastelPichi
Copy link
Contributor

You need the following headers:

    "user-agent": "okhttp/4.12.0",
    "x-app-version": "3.231.0",
    "x-request-id": "whatever"

other endpoints might need them too now.

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