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

TVDB API authorization failed. #40

Closed
arsaboo opened this issue Oct 15, 2020 · 14 comments
Closed

TVDB API authorization failed. #40

arsaboo opened this issue Oct 15, 2020 · 14 comments

Comments

@arsaboo
Copy link

arsaboo commented Oct 15, 2020

I am unable to use the TVDB api. I created a V4 API and it shows status Active on TVDB website. However, it is not working in updatetool. Here's the log (with API keys masked):

[INFO ] - 2020-10-15 16:04:25 @ Main.loadImplementation: Loaded implementation << imdb-docker << updatetool.imdb.ImdbDockerImplementation
[INFO ] - 2020-10-15 16:04:25 @ Main.main: Running version: 1.4.4
[INFO ] - 2020-10-15 16:04:25 @ Main.main: Args: {imdb-docker={schedule=12}}
[INFO ] - 2020-10-15 16:04:25 @ Main.main: << INIT: imdb-docker @ {schedule=12} >>
[INFO ] - 2020-10-15 16:04:25 @ Main.testApiTmdb: Testing TMDB API key: XYZ---XYZ
[INFO ] - 2020-10-15 16:04:26 @ Main.genericApiTest: Test passed. API Key is valid.
[INFO ] - 2020-10-15 16:04:26 @ ImdbDockerImplementation.bootstrap: TMDB API key enabled TMDB <=> IMDB matching. Will process TMDB backed Movie and TV Series libraries and TMDB orphans.
[INFO ] - 2020-10-15 16:04:26 @ Main.testApiTvdb: Testing TVDB API authorization: apikey=XYZ---XYZ
[ERROR] - 2020-10-15 16:04:26 @ TvdbApi.auth: TVDB authorization failed with code 401
[ERROR] - 2020-10-15 16:04:26 @ TvdbApi.auth: This could be due to the TVDB API having issues at the moment or your credentials being wrong.
[ERROR] - 2020-10-15 16:04:26 @ TvdbApi.auth: This is the received response:
[ERROR] - 2020-10-15 16:04:26 @ TvdbApi.auth: {"Error":"API Key Required"}
[ERROR] - 2020-10-15 16:04:26 @ TvdbApi.auth: ===================================================
[ERROR] - 2020-10-15 16:04:26 @ Main.testApiTvdb: API Test failed: TVDB API authorization failed.
[ERROR] - 2020-10-15 16:04:26 @ Main.testApiTvdb: Keys available under: https://thetvdb.com/

The docker command that I am using:

sudo docker run -dit -e RUN_EVERY_N_HOURS=12 --name updatetool --restart=always -e TMDB_API_KEY=XYZ---XYZ -e TVDB_API_KEY=XYZ---XYZ -v /etc/localtime:/etc/localtime:ro -v "/mnt/data/docker/containers/plex/config/Library/Application Support/Plex Media Server":/plexdata -v "/mnt/data/docker/containers/updatetool/config":/config mynttt/updatetool
@mynttt
Copy link
Owner

mynttt commented Oct 16, 2020

Looks like they introduced a new API with v4. I belive UpdateTool runs on v3 still. I'll look into it the next days so I can patch in support for the new API version.

@arsaboo
Copy link
Author

arsaboo commented Oct 16, 2020

Yeah...let me know if you want me to test anything. I will leave the issue open in the meantime.

@mynttt
Copy link
Owner

mynttt commented Oct 21, 2020

I've looked into it. They don't offer free API usage anymore. I would have to maintain a commercial app to be granted an API key or I would have to be forced to pay the subscription price (which I am not interested in). How did you get your key? Did you do a beta test or pay?

@arsaboo
Copy link
Author

arsaboo commented Oct 27, 2020

May be it was a beta key. That was the only option that was available.

@mynttt
Copy link
Owner

mynttt commented Oct 27, 2020

If you paid for it you're also able to get a legacy key from them. You should use that legacy key instead as that one is for v3.

@mynttt mynttt closed this as completed Oct 27, 2020
@arsaboo
Copy link
Author

arsaboo commented Nov 2, 2020

Legacy API keys are not free. Moreover, they will be deprecated early 2021

image

@mynttt
Copy link
Owner

mynttt commented Nov 10, 2020

I seem to have a v4 application side key now. Do you know if there is any v4 documentation somewhere? I only find docs for the old v3 API. Without those docs I won't be able to implement support for the v4 API yet.

@mynttt mynttt reopened this Nov 10, 2020
@mynttt
Copy link
Owner

mynttt commented Nov 10, 2020

Seems that the documentation of the new API is this here: https://support.thetvdb.com/kb/faq.php?id=74. Maybe in a few weeks they have the completed docs out.

@mynttt
Copy link
Owner

mynttt commented Nov 18, 2020

 
The v4 API will launch the week of 11/9.
All previous API versions will be deprecated approximately 6 months later, at the end of March 2021. This will allow projects time to convert.
Later in 2021, we’ll be adding writable interfaces to the API, allowing projects to push data back into the site.
Developers will need to create a new key for v4, which can be done from your TheTVDB dashboard under API Keys.
The v4 API is NOT backwards compatible.

From a mail I received today. v4 support will come soon!

@mynttt
Copy link
Owner

mynttt commented Dec 7, 2020

So to give a little update. The v4 API seems to be public now, however it is still heavily incomplete. As of right now it is not possible to get any IMDB ids from it. I hope they don't forget to add that feature as else the v4 API will be useless for UpdateTool.

@rodrigosargaco
Copy link

isn't there a free option for TV Shows?

@mynttt
Copy link
Owner

mynttt commented Mar 10, 2021

@PadreToio Sadly only a legacy key is free. Right now you can only get them by paying for TVDB access but everyone that ever owned one is still able to keep them. As soon as they shut down v3 there won't be any free keys anymore tho and they can't be used to query new v4 IDs which renders them useless for the new Plex Tv Show agent.

@mynttt
Copy link
Owner

mynttt commented Mar 10, 2021

I'm closing this issue as further development regarding v4 support is discussed in #52 .

@mynttt mynttt closed this as completed Mar 10, 2021
@mynttt
Copy link
Owner

mynttt commented Mar 12, 2021

@arsaboo v4 is now supported with 1.5.2!

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

3 participants