wagnerrp / pytmdb3

Python interface to TheMovieDB.org v3 API
BSD 3-Clause "New" or "Revised" License
120 stars 36 forks source link

pytmdb3 will not accept my api_key #46

Closed stampedeboss closed 10 years ago

stampedeboss commented 10 years ago

I get the following error:

tmdb3.set_key('99999999999999999999999999999') Traceback (most recent call last): File "", line 1, in File "tmdb3/request.py", line 33, in set_key raise TMDBKeyInvalid("Specified API key must be 128-bit hex") tmdb3.tmdb_exceptions.TMDBKeyInvalid: Specified API key must be 128-bit hex

The key being supplied is identical to the key listed in the web site. It also being accepted by the old tmdb api without issue.

wagnerrp commented 10 years ago

I currently know of three keys, although I could probably find some more if I went searching through available source of other projects using the TMDBv3 API.

They're all 32-characters long, and all composed of hexadecimal characters. Now "99999999999999999999999999999" is only 29-characters and does not follow that format, but presumably that is just some arbitrary string in place of your real key. Is it possible you copied your key in incompletely? Were you given a key very early on before this format came into use?

wagnerrp commented 10 years ago

No response from reporter, and TMDB admin confirms all keys should follow that format. I'm closing this one.