503 errors using the API / Errors Scraping etc [MERGED]

Discussion about the website and interfaces.
Report general bugs here.
Forum rules
DO NOT POST SERIES REQUESTS HERE.
Use the appropriate forum.
Requests posted here are subject to immediate deletion.
Coco
Site Admin
Posts: 2472
Joined: Tue Mar 13, 2007 8:16 pm
Location: Canada

Mon Apr 15, 2013 9:20 am

The site is working properly. Are you saying if you click on the exact link you posted you're getting an error? If so what error?

Sounds like whatever app you're using doesn't have a working internet connection but I can't say for sure. Either that or you might have some sort of firewall issue blocking you but the site is correctly responding to those requests.
Please don't PM me. Post in the forums instead unless there is a very good reason for a PM or I won't respond.
theraster
Posts: 244
Joined: Thu Nov 25, 2010 8:29 pm

Thu Oct 03, 2013 3:08 pm

no matter the command the result is always 403.

Code: Select all

C:\lib\tvdb_api\tests>python runtests.py
Check docstring examples works ... 
**********************************************************************
File "C:\lib\tvdb_api\tvdb_api.py", line 14, in tvdb_api
Failed example:
    t['Lost'][4][11]['episodename']
Exception raised:
    Traceback (most recent call last):
      File "C:\Python27\lib\doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
      File "<doctest tvdb_api[2]>", line 1, in <module>
        t['Lost'][4][11]['episodename']
      File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
        sid = self._nameToSid(key)
      File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
        selected_series = self._getSeries( name )
      File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
        allSeries = self.search(series)
      File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
        seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
      File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
        src = self._loadUrl(url, language=language)
      File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
        raise tvdb_error("Could not connect to server: %s" % (errormsg))
    tvdb_error: Could not connect to server: HTTP Error 403: Forbidden
**********************************************************************
File "C:\lib\tvdb_api\tvdb_api.py", line 160, in tvdb_api.Show.search
Failed example:
    results = t['Scrubs'].search("my first")
Exception raised:
    Traceback (most recent call last):
      File "C:\Python27\lib\doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
      File "<doctest tvdb_api.Show.search[4]>", line 1, in <module>
        results = t['Scrubs'].search("my first")
      File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
        sid = self._nameToSid(key)
      File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
        selected_series = self._getSeries( name )
      File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
        allSeries = self.search(series)
      File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
        seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
      File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
        src = self._loadUrl(url, language=language)
      File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
        raise tvdb_error("Could not connect to server: %s" % (errormsg))
    tvdb_error: Could not connect to server: HTTP Error 403: Forbidden
**********************************************************************
File "C:\lib\tvdb_api\tvdb_api.py", line 161, in tvdb_api.Show.search
Failed example:
    print results[0]['episodename']
Exception raised:
    Traceback (most recent call last):
      File "C:\Python27\lib\doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
      File "<doctest tvdb_api.Show.search[5]>", line 1, in <module>
        print results[0]['episodename']
    NameError: name 'results' is not defined
**********************************************************************
File "C:\lib\tvdb_api\tvdb_api.py", line 163, in tvdb_api.Show.search
Failed example:
    for x in results: print x['episodename']
Exception raised:
    Traceback (most recent call last):
      File "C:\Python27\lib\doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
      File "<doctest tvdb_api.Show.search[6]>", line 1, in <module>
        for x in results: print x['episodename']
    NameError: name 'results' is not defined
**********************************************************************
File "C:\lib\tvdb_api\tvdb_api.py", line 294, in tvdb_api.Tvdb
Failed example:
    t['Scrubs'][1][24]['episodename']
Exception raised:
    Traceback (most recent call last):
      File "C:\Python27\lib\doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
      File "<doctest tvdb_api.Tvdb[1]>", line 1, in <module>
        t['Scrubs'][1][24]['episodename']
      File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
        sid = self._nameToSid(key)
      File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
        selected_series = self._getSeries( name )
      File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
        allSeries = self.search(series)
      File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
        seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
      File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
        src = self._loadUrl(url, language=language)
      File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
        raise tvdb_error("Could not connect to server: %s" % (errormsg))
    tvdb_error: Could not connect to server: HTTP Error 403: Forbidden
DEBUG:tvdb_api:Getting show scrubs
DEBUG:tvdb_api:Searching for show scrubs
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=scrubs&language=en
**********************************************************************
File "C:\lib\tvdb_api\tvdb_api.py", line 338, in tvdb_api.Tvdb.__init__
Failed example:
    Tvdb(banners=True)['scrubs']['_banners'].keys()
Exception raised:
    Traceback (most recent call last):
      File "C:\Python27\lib\doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
      File "<doctest tvdb_api.Tvdb.__init__[2]>", line 1, in <module>
        Tvdb(banners=True)['scrubs']['_banners'].keys()
      File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
        sid = self._nameToSid(key)
      File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
        selected_series = self._getSeries( name )
      File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
        allSeries = self.search(series)
      File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
        seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
      File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
        src = self._loadUrl(url, language=language)
      File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
        raise tvdb_error("Could not connect to server: %s" % (errormsg))
    tvdb_error: Could not connect to server: HTTP Error 403: Forbidden
DEBUG:tvdb_api:Getting show scrubs
DEBUG:tvdb_api:Searching for show scrubs
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=scrubs&language=en
**********************************************************************
File "C:\lib\tvdb_api\tvdb_api.py", line 346, in tvdb_api.Tvdb.__init__
Failed example:
    t['scrubs']['_actors'][0]['name']
Exception raised:
    Traceback (most recent call last):
      File "C:\Python27\lib\doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
      File "<doctest tvdb_api.Tvdb.__init__[4]>", line 1, in <module>
        t['scrubs']['_actors'][0]['name']
      File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
        sid = self._nameToSid(key)
      File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
        selected_series = self._getSeries( name )
      File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
        allSeries = self.search(series)
      File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
        seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
      File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
        src = self._loadUrl(url, language=language)
      File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
        raise tvdb_error("Could not connect to server: %s" % (errormsg))
    tvdb_error: Could not connect to server: HTTP Error 403: Forbidden
DEBUG:tvdb_api:Getting show scrubs
DEBUG:tvdb_api:Searching for show scrubs
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=scrubs&language=en
**********************************************************************
File "C:\lib\tvdb_api\tvdb_api.py", line 723, in tvdb_api.Tvdb._parseActors
Failed example:
    actors = t['scrubs']['_actors']
Exception raised:
    Traceback (most recent call last):
      File "C:\Python27\lib\doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
      File "<doctest tvdb_api.Tvdb._parseActors[1]>", line 1, in <module>
        actors = t['scrubs']['_actors']
      File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
        sid = self._nameToSid(key)
      File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
        selected_series = self._getSeries( name )
      File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
        allSeries = self.search(series)
      File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
        seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
      File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
        src = self._loadUrl(url, language=language)
      File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
        raise tvdb_error("Could not connect to server: %s" % (errormsg))
    tvdb_error: Could not connect to server: HTTP Error 403: Forbidden
**********************************************************************
File "C:\lib\tvdb_api\tvdb_api.py", line 724, in tvdb_api.Tvdb._parseActors
Failed example:
    type(actors)
Exception raised:
    Traceback (most recent call last):
      File "C:\Python27\lib\doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
      File "<doctest tvdb_api.Tvdb._parseActors[2]>", line 1, in <module>
        type(actors)
    NameError: name 'actors' is not defined
**********************************************************************
File "C:\lib\tvdb_api\tvdb_api.py", line 726, in tvdb_api.Tvdb._parseActors
Failed example:
    type(actors[0])
Exception raised:
    Traceback (most recent call last):
      File "C:\Python27\lib\doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
      File "<doctest tvdb_api.Tvdb._parseActors[3]>", line 1, in <module>
        type(actors[0])
    NameError: name 'actors' is not defined
**********************************************************************
File "C:\lib\tvdb_api\tvdb_api.py", line 728, in tvdb_api.Tvdb._parseActors
Failed example:
    actors[0]
Exception raised:
    Traceback (most recent call last):
      File "C:\Python27\lib\doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
      File "<doctest tvdb_api.Tvdb._parseActors[4]>", line 1, in <module>
        actors[0]
    NameError: name 'actors' is not defined
**********************************************************************
File "C:\lib\tvdb_api\tvdb_api.py", line 730, in tvdb_api.Tvdb._parseActors
Failed example:
    sorted(actors[0].keys())
Exception raised:
    Traceback (most recent call last):
      File "C:\Python27\lib\doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
      File "<doctest tvdb_api.Tvdb._parseActors[5]>", line 1, in <module>
        sorted(actors[0].keys())
    NameError: name 'actors' is not defined
**********************************************************************
File "C:\lib\tvdb_api\tvdb_api.py", line 732, in tvdb_api.Tvdb._parseActors
Failed example:
    actors[0]['name']
Exception raised:
    Traceback (most recent call last):
      File "C:\Python27\lib\doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
      File "<doctest tvdb_api.Tvdb._parseActors[6]>", line 1, in <module>
        actors[0]['name']
    NameError: name 'actors' is not defined
**********************************************************************
File "C:\lib\tvdb_api\tvdb_api.py", line 734, in tvdb_api.Tvdb._parseActors
Failed example:
    actors[0]['image']
Exception raised:
    Traceback (most recent call last):
      File "C:\Python27\lib\doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
      File "<doctest tvdb_api.Tvdb._parseActors[7]>", line 1, in <module>
        actors[0]['image']
    NameError: name 'actors' is not defined
DEBUG:tvdb_api:Getting show scrubs
DEBUG:tvdb_api:Searching for show scrubs
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=scrubs&language=en
**********************************************************************
File "C:\lib\tvdb_api\tvdb_api.py", line 671, in tvdb_api.Tvdb._parseBanners
Failed example:
    t['scrubs']['_banners'].keys()
Exception raised:
    Traceback (most recent call last):
      File "C:\Python27\lib\doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
      File "<doctest tvdb_api.Tvdb._parseBanners[1]>", line 1, in <module>
        t['scrubs']['_banners'].keys()
      File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
        sid = self._nameToSid(key)
      File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
        selected_series = self._getSeries( name )
      File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
        allSeries = self.search(series)
      File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
        seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
      File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
        src = self._loadUrl(url, language=language)
      File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
        raise tvdb_error("Could not connect to server: %s" % (errormsg))
    tvdb_error: Could not connect to server: HTTP Error 403: Forbidden
DEBUG:tvdb_api:Getting show scrubs
DEBUG:tvdb_api:Searching for show scrubs
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=scrubs&language=en
**********************************************************************
File "C:\lib\tvdb_api\tvdb_api.py", line 673, in tvdb_api.Tvdb._parseBanners
Failed example:
    t['scrubs']['_banners']['poster']['680x1000']['35308']['_bannerpath']
Exception raised:
    Traceback (most recent call last):
      File "C:\Python27\lib\doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
      File "<doctest tvdb_api.Tvdb._parseBanners[2]>", line 1, in <module>
        t['scrubs']['_banners']['poster']['680x1000']['35308']['_bannerpath']
      File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
        sid = self._nameToSid(key)
      File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
        selected_series = self._getSeries( name )
      File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
        allSeries = self.search(series)
      File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
        seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
      File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
        src = self._loadUrl(url, language=language)
      File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
        raise tvdb_error("Could not connect to server: %s" % (errormsg))
    tvdb_error: Could not connect to server: HTTP Error 403: Forbidden
**********************************************************************
7 items had failures:
   1 of   3 in tvdb_api
   1 of   2 in tvdb_api.Season.search
   6 of   7 in tvdb_api.Show.search
   1 of   2 in tvdb_api.Tvdb
   2 of   6 in tvdb_api.Tvdb.__init__
   7 of   8 in tvdb_api.Tvdb._parseActors
   2 of   3 in tvdb_api.Tvdb._parseBanners
***Test Failed*** 20 failures.
ok
test_attributenamenotfound (test_tvdb_api.test_tvdb_errors)
Checks exception is thrown for if an attribute isn't found. ... DEBUG:tvdb_api:Getting show cnnnn
DEBUG:tvdb_api:Searching for show cnnnn
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=cnnnn&language=en
ERROR
test_episodenotfound (test_tvdb_api.test_tvdb_errors)
Checks exception is raised for non-existent episode ... DEBUG:tvdb_api:Getting show scrubs
DEBUG:tvdb_api:Searching for show scrubs
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=scrubs&language=en
ERROR
test_seasonnotfound (test_tvdb_api.test_tvdb_errors)
Checks exception is thrown when season doesn't exist. ... DEBUG:tvdb_api:Getting show cnnnn
DEBUG:tvdb_api:Searching for show cnnnn
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=cnnnn&language=en
ERROR
test_shownotfound (test_tvdb_api.test_tvdb_errors)
Checks exception is thrown when episode doesn't exist. ... DEBUG:tvdb_api:Getting show the fake show thingy
DEBUG:tvdb_api:Searching for show the%20fake%20show%20thingy
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=the%20fake%20show%20thingy&language=en
ERROR
test_episode_name_french (test_tvdb_api.test_tvdb_languages)
Check episode data is in French (language="fr") ... DEBUG:tvdb_api:Getting show scrubs
DEBUG:tvdb_api:Searching for show scrubs
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=scrubs&language=fr
ERROR
test_episode_name_spanish (test_tvdb_api.test_tvdb_languages)
Check episode data is in Spanish (language="es") ... DEBUG:tvdb_api:Getting show scrubs
DEBUG:tvdb_api:Searching for show scrubs
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=scrubs&language=es
ERROR
test_multilanguage_selection (test_tvdb_api.test_tvdb_languages)
Check selected language is used ... DEBUG:tvdb_api:Getting show dexter
DEBUG:tvdb_api:Searching for show dexter
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=dexter&language=en
ERROR
test_have_all_languages (test_tvdb_api.test_tvdb_misc)
Check valid_languages is up-to-date (compared to languages.xml) ... DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/0629B785CE550C8D/languages.xml
ERROR
test_repr_episode (test_tvdb_api.test_tvdb_misc)
Check repr() of Episode ... DEBUG:tvdb_api:Getting show cnnnn
DEBUG:tvdb_api:Searching for show cnnnn
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=cnnnn&language=en
ERROR
test_repr_season (test_tvdb_api.test_tvdb_misc)
Check repr() of Season ... DEBUG:tvdb_api:Getting show cnnnn
DEBUG:tvdb_api:Searching for show cnnnn
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=cnnnn&language=en
ERROR
test_repr_show (test_tvdb_api.test_tvdb_misc)
Check repr() of Season ... DEBUG:tvdb_api:Getting show cnnnn
DEBUG:tvdb_api:Searching for show cnnnn
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=cnnnn&language=en
ERROR
test_aired_on (test_tvdb_api.test_tvdb_search)
Tests airedOn show method ... DEBUG:tvdb_api:Getting show scrubs
DEBUG:tvdb_api:Searching for show scrubs
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=scrubs&language=en
ERROR
test_search_checkname (test_tvdb_api.test_tvdb_search)
Checks you can get the episode name of a search result ... DEBUG:tvdb_api:Getting show scrubs
DEBUG:tvdb_api:Searching for show scrubs
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=scrubs&language=en
ERROR
test_search_len (test_tvdb_api.test_tvdb_search)
There should be only one result matching ... DEBUG:tvdb_api:Getting show my name is earl
DEBUG:tvdb_api:Searching for show my%20name%20is%20earl
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=my%20name%20is%20earl&language=en
ERROR
test_search_multiresults (test_tvdb_api.test_tvdb_search)
Checks search can return multiple results ... DEBUG:tvdb_api:Getting show scrubs
DEBUG:tvdb_api:Searching for show scrubs
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=scrubs&language=en
ERROR
test_search_no_params_error (test_tvdb_api.test_tvdb_search)
Checks not supplying search info raises TypeError ... DEBUG:tvdb_api:Getting show scrubs
DEBUG:tvdb_api:Searching for show scrubs
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=scrubs&language=en
ERROR
test_search_season (test_tvdb_api.test_tvdb_search)
Checks the searching of a single season ... DEBUG:tvdb_api:Getting show scrubs
DEBUG:tvdb_api:Searching for show scrubs
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=scrubs&language=en
ERROR
test_search_show (test_tvdb_api.test_tvdb_search)
Checks the searching of an entire show ... DEBUG:tvdb_api:Getting show cnnnn
DEBUG:tvdb_api:Searching for show cnnnn
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=cnnnn&language=en
ERROR
test_search (test_tvdb_api.test_tvdb_show_search)
Test Tvdb.search method ... DEBUG:tvdb_api:Searching for show my%20name%20is%20earl
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=my%20name%20is%20earl&language=en
ERROR
test_search_in_all_languages (test_tvdb_api.test_tvdb_unicode)
Check search_all_languages returns Chinese show, with language=en ... DEBUG:tvdb_api:Getting show tình người hiện đại
DEBUG:tvdb_api:Searching for show t%C3%ACnh%20ng%C6%B0%E1%BB%9Di%20hi%E1%BB%87n%20%C4%91%E1%BA%A1i
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=t%C3%ACnh%20ng%C6%B0%E1%BB%9Di%20hi%E1%BB%87n%20%C4%91%E1%BA%A1i&language=all
ERROR
test_search_in_chinese (test_tvdb_api.test_tvdb_unicode)
Check searching for show with language=zh returns Chinese seriesname ... DEBUG:tvdb_api:Getting show tình người hiện đại
DEBUG:tvdb_api:Searching for show t%C3%ACnh%20ng%C6%B0%E1%BB%9Di%20hi%E1%BB%87n%20%C4%91%E1%BA%A1i
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=t%C3%ACnh%20ng%C6%B0%E1%BB%9Di%20hi%E1%BB%87n%20%C4%91%E1%BA%A1i&language=zh
ERROR
test_get_series_from_zip (test_tvdb_api.test_tvdb_zip) ... DEBUG:tvdb_api:Getting show scrubs
DEBUG:tvdb_api:Searching for show scrubs
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=scrubs&language=en
ERROR
test_spaces_from_zip (test_tvdb_api.test_tvdb_zip)
Checks shownames with spaces ... DEBUG:tvdb_api:Getting show my name is earl
DEBUG:tvdb_api:Searching for show my%20name%20is%20earl
DEBUG:tvdb_api:Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=my%20name%20is%20earl&language=en
ERROR

======================================================================
ERROR: test_actor_has_name (test_tvdb_api.test_tvdb_actors)
Check first actor has a name
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 403, in test_actor_has_name
    self.t['scrubs']['_actors'][0]['name'],
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_actor_image_corrected (test_tvdb_api.test_tvdb_actors)
Check image URL is fully qualified
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 410, in test_actor_image_corrected
    for actor in self.t['scrubs']['_actors']:
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_actors_has_actor (test_tvdb_api.test_tvdb_actors)
Check show has at least one Actor
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 395, in test_actors_has_actor
    self.t['scrubs']['_actors'][0],
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_actors_is_correct_datatype (test_tvdb_api.test_tvdb_actors)
Check show/_actors key exists and is correct type
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 385, in test_actors_is_correct_datatype
    self.t['scrubs']['_actors'],
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_1 (test_tvdb_api.test_tvdb_alt_names)
Tests basic access of series name alias
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 533, in test_1
    results = self.t.search("Don't Trust the B---- in Apartment 23")
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_banner_url (test_tvdb_api.test_tvdb_banners)
Checks banner URLs start with http://
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 350, in test_banner_url
    for banner_type, banner_data in self.t['scrubs']['_banners'].items():
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_episode_image (test_tvdb_api.test_tvdb_banners)
Checks episode 'filename' image is fully qualified URL
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 362, in test_episode_image
    self.t['scrubs'][1][1]['filename'].startswith("http://"),
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_have_banners (test_tvdb_api.test_tvdb_banners)
Check banners at least one banner is found
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 343, in test_have_banners
    len(self.t['scrubs']['_banners']) > 0,
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_show_artwork (test_tvdb_api.test_tvdb_banners)
Checks various image URLs within season data are fully qualified
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 371, in test_show_artwork
    self.t['scrubs'][key].startswith("http://"),
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_different_case (test_tvdb_api.test_tvdb_basic)
Checks the auto-correction of show names is working.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 36, in test_different_case
    self.assertEquals(self.t['scrubs'][1][4]['episodename'], 'My Old Lady')
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_get_episode_overview (test_tvdb_api.test_tvdb_basic)
Checks episode overview is retrieved correctly.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 75, in test_get_episode_overview
    self.t['Battlestar Galactica (2003)'][1][6]['overview'].startswith(
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_get_parent (test_tvdb_api.test_tvdb_basic)
Check accessing series from episode instance
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 83, in test_get_parent
    show = self.t['Battlestar Galactica (2003)']
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_numeric (test_tvdb_api.test_tvdb_basic)
Checks numeric show names
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 48, in test_numeric
    self.assertEquals(self.t['24'][2][20]['episodename'], 'Day 2: 3:00 A.M.-4:00 A.M.')
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_season_iter (test_tvdb_api.test_tvdb_basic)
Iterating over a show returns episodes
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 66, in test_season_iter
    [episode for episode in self.t['Life on Mars'][1]]
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_show_iter (test_tvdb_api.test_tvdb_basic)
Iterating over a show returns each seasons
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 56, in test_show_iter
    [season for season in self.t['Life on Mars']]
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_spaces (test_tvdb_api.test_tvdb_basic)
Checks shownames with spaces
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 42, in test_spaces
    self.assertEquals(self.t['My Name Is Earl']['seriesname'], 'My Name Is Earl')
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_actors_is_correct_datatype (test_tvdb_api.test_tvdb_by_id)
Check show/_actors key exists and is correct type
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 482, in test_actors_is_correct_datatype
    self.t[76156]['seriesname'],
  File "C:\lib\tvdb_api\tvdb_api.py", line 852, in __getitem__
    self._getShowData(key, self.config['language'])
  File "C:\lib\tvdb_api\tvdb_api.py", line 781, in _getShowData
    self.config['url_seriesInfo'] % (sid, getShowInLanguage)
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_episode_data (test_tvdb_api.test_tvdb_data)
Check the firstaired value is retrieved
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 195, in test_episode_data
    self.t['lost']['firstaired'],
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_attributenamenotfound (test_tvdb_api.test_tvdb_errors)
Checks exception is thrown for if an attribute isn't found.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 129, in test_attributenamenotfound
    self.assertRaises(tvdb_attributenotfound, lambda:self.t['CNNNN'][1][6]['afakeattributething'])
  File "C:\Python27\lib\unittest\case.py", line 475, in assertRaises
    callableObj(*args, **kwargs)
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 129, in <lambda>
    self.assertRaises(tvdb_attributenotfound, lambda:self.t['CNNNN'][1][6]['afakeattributething'])
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_episodenotfound (test_tvdb_api.test_tvdb_errors)
Checks exception is raised for non-existent episode
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 124, in test_episodenotfound
    self.assertRaises(tvdb_episodenotfound, lambda:self.t['Scrubs'][1][30])
  File "C:\Python27\lib\unittest\case.py", line 475, in assertRaises
    callableObj(*args, **kwargs)
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 124, in <lambda>
    self.assertRaises(tvdb_episodenotfound, lambda:self.t['Scrubs'][1][30])
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_seasonnotfound (test_tvdb_api.test_tvdb_errors)
Checks exception is thrown when season doesn't exist.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 114, in test_seasonnotfound
    self.assertRaises(tvdb_seasonnotfound, lambda:self.t['CNNNN'][10][1])
  File "C:\Python27\lib\unittest\case.py", line 475, in assertRaises
    callableObj(*args, **kwargs)
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 114, in <lambda>
    self.assertRaises(tvdb_seasonnotfound, lambda:self.t['CNNNN'][10][1])
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_shownotfound (test_tvdb_api.test_tvdb_errors)
Checks exception is thrown when episode doesn't exist.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 119, in test_shownotfound
    self.assertRaises(tvdb_shownotfound, lambda:self.t['the fake show thingy'])
  File "C:\Python27\lib\unittest\case.py", line 475, in assertRaises
    callableObj(*args, **kwargs)
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 119, in <lambda>
    self.assertRaises(tvdb_shownotfound, lambda:self.t['the fake show thingy'])
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_episode_name_french (test_tvdb_api.test_tvdb_languages)
Check episode data is in French (language="fr")
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 249, in test_episode_name_french
    t['scrubs'][1][1]['episodename'],
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_episode_name_spanish (test_tvdb_api.test_tvdb_languages)
Check episode data is in Spanish (language="es")
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 263, in test_episode_name_spanish
    t['scrubs'][1][1]['episodename'],
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_multilanguage_selection (test_tvdb_api.test_tvdb_languages)
Check selected language is used
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 293, in test_multilanguage_selection
    t_en['dexter'][1][2]['episodename'], "Crocodile"
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_have_all_languages (test_tvdb_api.test_tvdb_misc)
Check valid_languages is up-to-date (compared to languages.xml)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 233, in test_have_all_languages
    self.t.config['apikey']
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_search_len (test_tvdb_api.test_tvdb_search)
There should be only one result matching
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 143, in test_search_len
    self.assertEquals(len(self.t['My Name Is Earl'].search('Faked His Own Death')), 1)
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_search_multiresults (test_tvdb_api.test_tvdb_search)
Checks search can return multiple results
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 154, in test_search_multiresults
    self.assertEquals(len(self.t['Scrubs'].search('my first')) >= 3, True)
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

======================================================================
ERROR: test_search_show (test_tvdb_api.test_tvdb_search)
Checks the searching of an entire show
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\lib\tvdb_api\tests\test_tvdb_api.py", line 173, in test_search_show
    len(self.t['CNNNN'].search('CNNNN', key='episodename')),
  File "C:\lib\tvdb_api\tvdb_api.py", line 856, in __getitem__
    sid = self._nameToSid(key)
  File "C:\lib\tvdb_api\tvdb_api.py", line 836, in _nameToSid
    selected_series = self._getSeries( name )
  File "C:\lib\tvdb_api\tvdb_api.py", line 645, in _getSeries
    allSeries = self.search(series)
  File "C:\lib\tvdb_api\tvdb_api.py", line 626, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "C:\lib\tvdb_api\tvdb_api.py", line 556, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "C:\lib\tvdb_api\tvdb_api.py", line 525, in _loadUrl
    raise tvdb_error("Could not connect to server: %s" % (errormsg))
tvdb_error: Could not connect to server: HTTP Error 403: Forbidden

----------------------------------------------------------------------
FAILED (errors=41)
redboyke
Posts: 3
Joined: Thu Oct 03, 2013 3:11 pm

Thu Oct 03, 2013 3:16 pm

ive updated sickbeard today and i get this error:

2013-10-04 00:11:03 CP Server Thread-6 :: Unable to get URL: http://thetvdb.com/api/GetSeries.php?se ... anguage=en

it worked fine yesterday but because of this error i can't add new series to sickbeard.
hikaricore
Gaius Baltar
Posts: 5994
Joined: Tue Apr 28, 2009 9:28 am

Thu Oct 03, 2013 3:20 pm

You should probably ask on the Sickbeard forums about this. We have nothing to do with their software.
theraster
Posts: 244
Joined: Thu Nov 25, 2010 8:29 pm

Thu Oct 03, 2013 3:28 pm

so word is that its not working in France, Australia, USA. It is working in the UK however.
redboyke
Posts: 3
Joined: Thu Oct 03, 2013 3:11 pm

Thu Oct 03, 2013 3:38 pm

hikaricore wrote:You should probably ask on the Sickbeard forums about this. We have nothing to do with their software.
ok thanks i will. thougt it was a thetvdb problem cause it couldnt open url
fraenhawk
Posts: 11
Joined: Fri Apr 22, 2011 5:19 pm

Thu Oct 03, 2013 3:41 pm

Same here, everything was fine yesterday and now my metabrowser is just getting "The remote server returned an error: (403) Forbidden." for any fetches but I'll keep investigating.
robhux
Posts: 13
Joined: Thu Oct 03, 2013 4:05 pm

Thu Oct 03, 2013 4:07 pm

Mine has done the same, I have changed my SB settings to use http:\\www.thetvdb.com as opposed to http:\\thetvdb.com and everything is working again. Something to do with the API and www?
ManiacB
Site Moderator
Posts: 2003
Joined: Tue Apr 26, 2011 3:56 am

Thu Oct 03, 2013 4:34 pm

Yeah, I also seem to be getting errors scraping.
robhux
Posts: 13
Joined: Thu Oct 03, 2013 4:05 pm

Thu Oct 03, 2013 4:40 pm

Sorry can't work out how to edit previous posts........

I changed the following Sick Beard files from "http://thetvdb.com" to to http://www.thetvdb.com under base_url and Sick Beard is now happy again.

lib/tvdb_api/tvdb_api.py
sickbeard/__init__.py
sickbeard/webapi.py
sickbeard/webserve.py

There is reference to this being changed here https://github.com/midgetspy/Sick-Beard ... a7da006749

Hope that helps.
Post Reply