title: 401 Client Error: Unauthorized for url
body: <p>Recently I started to get</p>
  
  <blockquote>
    <p>requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: <a href="https://api.soundcloud.com/oauth2/token" rel="noreferrer">https://api.soundcloud.com/oauth2/token</a></p>
  </blockquote>
  
  <p>using soundcloud (0.5.0) Python library.</p>
  
  <p>It happens in</p>
  
  <pre><code>client = soundcloud.Client(client_id='id',
                             client_secret='secret',
                             username='user@mail.com',
                             password='passwd')
  </code></pre>
  
  <p>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.</p>
  
  <p>Does the error mean I was banned for some reason? </p>