V2 Python 401

A place for developers to advertise their TheTVDB.com enabled app and get help from other developers with the API.
Forum rules
This forum is now read-only. Support for TheTVDB.com is now available at https://support.thetvdb.com/

Mon Nov 25, 2019 10:15 am

Has anybody found a working solution for v2?
I'm using a python wrapper and receiving HTTP Error 401: Unauthorized

The script is some years old now but has worked fine up until recently.


Tue Nov 26, 2019 7:53 pm

Is your script asking for the token using API Key, Username & Password? Have you tried with only your API Key when requesting the token?

Code: Select all

  "apikey": "string"

Wed Nov 27, 2019 10:58 am

Always just needed the API Key

Now is always returning;

"tvdb_exceptions.tvdb_error: Could not connect to server: HTTP Error 401: Unauthorized"


Here is my python script

Thu Nov 28, 2019 6:57 pm

Wow, man.. that is a lot of code! Can you narrow it down to your login Post? I see you are using "urllib", however, "requests" is a lot simpler to use. That is just my 2 cents but to each their own.

Tue Jul 14, 2020 5:34 am

I don't know what about now, but I'm working with Python 3.6.5. And I can code for 12 hours with realizing how time passes, without food. Man, this ain't good!

Tue Jul 14, 2020 5:52 am

I don't see my messages here, strange! Wanted to see what happened after.