thetvdb / v4-api

Founded in 2006, TheTVDB is one of the longest-running community-driven TV and Movie databases. With content metadata across hundreds of thousands of TV series and movies, TheTVDB powers many of the largest media centers in the market. Developers across the world build and rely upon TheTVDB's APIs to power their apps, utilities, and projects, generating millions of API calls per day. In our GitHub repository you will find all of the necessary support and v4 API documentation to make use of TheTVDB's metadata. Come and join us!
140 stars 13 forks source link

refresh_token failing #252

Open SirSparkles opened 2 years ago

SirSparkles commented 2 years ago

Hi,

refresh_token seems to be failing with a 400 Bad Request error

https://api4.thetvdb.com/v4/refresh_token

Headers I'm sending are: Accept: application/json Authorization: Bearer ey...Y8 x-api-key: ey...Y8

Has anything changed on your end?

antheaezzell commented 2 years ago

I've ticketed to the devs @SirSparkles and they will discuss it in the am.

antheaezzell commented 2 years ago

@SirSparkles I spoke with the devs, we don't have a refresh token endpoint. Our /login endpoint returns a new token every time it's called, so you can just call that instead of refreshing the existing token.

SirSparkles commented 2 years ago

Is this a change? The refresh token endpoint worked until recently?

SirSparkles commented 2 years ago

(happy that I can refactor and just request a new token, but just intersted how breakign API changes are notified)

maxifwortman commented 2 years ago

@SirSparkles I don't think we ever supported that endpoint. I have searched in previous version of the documentation and our repositories and it doesn't seems to exist. So probably was always returning a 400 error. For refreshing the token, you can use the /login endpoint and it will returned a new token every time.

antheaezzell commented 2 years ago

@SirSparkles I'm going to reopen this ticket, as we are considering this issue for a future enhancement and I want the community to be able to know the progress of it.

Internal ticket for our reference - https://mediamorph.atlassian.net/browse/TVD-3364