Issues with the API

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/
dlflannery
Posts: 35
Joined: Sat Oct 16, 2010 8:27 am
Location: Southwest Ohio, USA

Thu Nov 14, 2019 11:11 pm

I ran the same curl command preceded by "sudo" in the Linux system on my raspberry pi. The response this time was:

{"Error":"Not authorized"}
dlflannery
Posts: 35
Joined: Sat Oct 16, 2010 8:27 am
Location: Southwest Ohio, USA

Thu Nov 14, 2019 11:30 pm

However if I use the curl command provided via swagger:

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"apikey" : "MYAPIKEY"}' 'https://api.thetvdb.com/login'

preceded by sudo in my Linux pi -- it succeeds!
rudis1261
Posts: 8
Joined: Sun Jan 11, 2015 10:41 am

Thu Nov 14, 2019 11:42 pm

I have tried all variations. API is ignoring apikey provided in post body.

Code: Select all

curl -v -X POST https://api.thetvdb.com/login   -H 'Content-Type: application/json; charset=utf-8'   -d '{"apikey":"............1AE"}' -H 'Host: api.thetvdb.com'
Note: Unnecessary use of -X or --request, POST is already inferred.
*   Trying 143.204.68.6...
* TCP_NODELAY set
* Connected to api.thetvdb.com (143.204.68.6) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* Server certificate:
*  subject: CN=*.thetvdb.com
*  start date: May 23 00:00:00 2019 GMT
*  expire date: Jun 23 12:00:00 2020 GMT
*  subjectAltName: host "api.thetvdb.com" matched cert's "*.thetvdb.com"
*  issuer: C=US; O=Amazon; OU=Server CA 1B; CN=Amazon
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x55df82d21580)
> POST /login HTTP/2
> Host: api.thetvdb.com
> User-Agent: curl/7.58.0
> Accept: */*
> Content-Type: application/json; charset=utf-8
> Content-Length: 32
> 
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
* We are completely uploaded and fine
< HTTP/2 401 
< content-type: application/json; charset=utf-8
< content-length: 28
< date: Fri, 15 Nov 2019 07:41:00 GMT
< vary: Accept-Language
< www-authenticate: JWT realm=jwt auth
< x-powered-by: Thundar!
< x-thetvdb-api-version: 3.0.0
< x-cache: Error from cloudfront
< via: 1.1 15ae1f6750629689b84ff5c601c00fd6.cloudfront.net (CloudFront)
< x-amz-cf-pop: CPT50
< x-amz-cf-id: YMMV3DplIFf4dx-hiWKo5WHUHc8iKUJPA2KHBN_D1GyTnBtvYx1xrQ==
< 
* Connection #0 to host api.thetvdb.com left intact
{"Error":"API Key Required"}
Akyardba
Posts: 1833
Joined: Sat Oct 22, 2016 4:07 am

Fri Nov 15, 2019 4:48 am

Does API v1 still available after website v3 lived?

This page works
https://thetvdb.com/api/[API]/series/254123

But the zip file cannot be opened (downloadable, but corrupted)
https://thetvdb.com/api/[API]/series/254123/all/en.zip
danhi
Posts: 24
Joined: Sun Aug 14, 2011 3:04 pm

Fri Nov 15, 2019 2:09 pm

I was wondering if there is any progress on dealing with the underlying issue. The workaround of removing the username and userkey works, but is that going to be the final resolution? I'd like to rev my app once I know what I need to do.
User avatar
firecore
Posts: 13
Joined: Mon Jun 05, 2017 8:06 am
Location: Denver, CO
Contact:

Fri Nov 15, 2019 3:16 pm

Subbed.

We're also seeing issue with the v1 API.
Tracy
Posts: 25
Joined: Wed Oct 24, 2018 2:16 pm
Location: Brighton, UK

Fri Nov 15, 2019 3:22 pm

Hi

I'm getting a lot of entries with missing data eg:
https://api.thetvdb.com/series/372226
returns:

Code: Select all

{
  "data": {
    "id": 372226,
    "seriesId": "",
    "seriesName": null,
    "aliases": [],
    "season": "1",
    "poster": "",
    "banner": "",
    "fanart": "",
    "status": "Upcoming",
    "firstAired": "2018-11-11",
    "network": "TVP SA",
    "networkId": "378",
    "runtime": "110",
    "language": "",
    "genre": [
      "History",
      "War"
    ],
    "overview": null,
    "lastUpdated": 1573818933,
    "airsDayOfWeek": "Sunday",
    "airsTime": "8:00 PM",
    "rating": null,
    "imdbId": "",
    "zap2itId": "",
    "added": "2019-11-15 11:50:26",
    "addedBy": 140926,
    "siteRating": 0,
    "siteRatingCount": 0,
    "slug": "372226-ziuk-mlody-pilsudski"
  }
}
jforrestna
Posts: 4
Joined: Fri Nov 15, 2019 8:28 pm

Fri Nov 15, 2019 8:31 pm

I can comfirm that V1 api is returning empty data.
aussieconvict
Posts: 6
Joined: Sat Nov 16, 2019 12:37 am

Sat Nov 16, 2019 12:48 am

I'm also having issues with the API (although I'm just a beginner so I may well be doing something wrong). In testing on the swagger page, I can successfully hit the search endpoint:

Sample Test URL

Code: Select all

https://api.thetvdb.com/search/series?name=I%20dream%20of%20jeannie
Sample Result

Code: Select all

{
  "data": [
    {
      "aliases": [],
      "banner": "/banners/posters/77388-2.jpg",
      "firstAired": null,
      "id": 77388,
      "network": "NBC",
      "overview": "While on a mission, American astronaut Captain Tony Nelson is forced to make an emergency landing that will forever change his life. On a deserted South Pacific island, Captain Nelson happens upon a bottle containing a beautiful two-thousand-year-old female genie named Jeannie. Rescuing her from the bottle nets Tony the requisite three wishes, and then some, when Jeannie pledges total devotion to her new \"master\".",
      "seriesName": "I Dream of Jeannie",
      "slug": "i-dream-of-jeannie",
      "status": "Ended"
    }
  ]
}
If I then attempt to query the series endpoint, it throws an error.

Sample Test URL

Code: Select all

https://api.thetvdb.com/series/77388
Sample Result

Code: Select all

{
  "Error": "ID: 77388 not found"
}
Querying sub-nodes off the series endpoint appears to work fine though.

Sample Test URL

Code: Select all

https://api.thetvdb.com/series/77388/actors
Sample Result

Code: Select all

{
  "data": [
    {
      "id": 65323126,
      "seriesId": 77388,
      "name": "Barbara Eden",
      "role": "Jeannie",
      "sortOrder": 0,
      "image": "actors/55154.jpg",
      "imageAuthor": null,
      "imageAdded": "2011-01-26 13:31:28",
      "lastUpdated": "2019-11-13 13:49:36"
    },
    {
      "id": 65323124,
      "seriesId": 77388,
      "name": "Larry Hagman",
      "role": "Major Anthony Nelson",
      "sortOrder": 0,
      "image": "actors/55153.jpg",
      "imageAuthor": null,
      "imageAdded": "2011-01-26 13:31:56",
      "lastUpdated": "2019-11-13 13:49:36"
    },
    {
      "id": 65323122,
      "seriesId": 77388,
      "name": "Hayden Rorke",
      "role": "Dr. Alfred Bellows",
      "sortOrder": 0,
      "image": "actors/55152.jpg",
      "imageAuthor": null,
      "imageAdded": "2011-03-01 11:36:26",
      "lastUpdated": "2019-11-13 13:49:36"
    },
    {
      "id": 65323130,
      "seriesId": 77388,
      "name": "Barton MacLane",
      "role": "General Peterson",
      "sortOrder": 0,
      "image": "actors/55156.jpg",
      "imageAuthor": null,
      "imageAdded": "2011-03-01 11:29:28",
      "lastUpdated": "2019-11-13 13:49:36"
    },
    {
      "id": 65323128,
      "seriesId": 77388,
      "name": "Vinton Hayworth",
      "role": "Gen. Winfield Schaeffer",
      "sortOrder": 0,
      "image": "actors/55155.jpg",
      "imageAuthor": null,
      "imageAdded": "2011-03-01 11:39:11",
      "lastUpdated": "2019-11-13 13:49:36"
    },
    {
      "id": 65323134,
      "seriesId": 77388,
      "name": "Emmaline Henry",
      "role": "Amanda Bellows",
      "sortOrder": 0,
      "image": "actors/55158.jpg",
      "imageAuthor": null,
      "imageAdded": "2011-03-01 11:35:44",
      "lastUpdated": "2019-11-13 13:49:36"
    },
    {
      "id": 65323132,
      "seriesId": 77388,
      "name": "Bill Daily",
      "role": "Major Roger Healey",
      "sortOrder": 0,
      "image": "actors/55157.jpg",
      "imageAuthor": null,
      "imageAdded": "2011-03-01 11:31:12",
      "lastUpdated": "2019-11-13 13:49:36"
    }
  ]
}
Is there currently a problem with the series endpoint or am I simply misunderstanding the usage of the API?
sk4nk
Posts: 4
Joined: Wed Jun 13, 2018 12:33 pm

Sat Nov 16, 2019 7:18 am

I am also seeing missing series information using v1 and v2 of the API for multiple series. (v1 with sickbeard automator, v2 using tvdb_api).

Code: Select all

{
  "Error": "ID: 363673 not found"
}
Locked