[Python] 401 Client Error: Unauthorized for url

Discussão em 'Python' iniciado por Stack, Agosto 26, 2025.

  1. Stack

    Stack Membro Participativo

    Recently I started to get


    requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.soundcloud.com/oauth2/token
    ​

    using soundcloud (0.5.0) Python library.

    It happens in

    client = soundcloud.Client(client_id='id',
    client_secret='secret',
    username='user@mail.com',
    password='passwd')


    I double checked my credentials to make sure they are not the cause. I tried to get a Client instance from different IPs and different machines. At some random times during a day I can get a Client instance, but 99.99% of the day I get the error.

    Does the error mean I was banned for some reason?

    Continue reading...

Compartilhe esta Página