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

trakt.errors.NotFoundException: Not Found - method exists, but no record found #207

Open
UnknownWitcher opened this issue Jul 19, 2022 · 0 comments

Comments

@UnknownWitcher
Copy link

UnknownWitcher commented Jul 19, 2022

Edit: I thought this was an issue with the list being given a single name rather than having spaces/hyphens, but I just did some further testing and that doesn't seem to be case as it also occurs with the lists ID.

I then thought maybe it was caused by the size of the list, but when I created a new list that was around the same size it seems to work just fine, I even thought maybe the description from the list was causing the issue, so I copy/pasted the description into another list and tried running it again and it runs fine. I just cant seem to pull this specific list and I don't know why.

https://trakt.tv/users/unknownwitcher/lists/arrowverse

Edit 2: Only thing I can think of now, is that maybe whats causing the issue is the fact that this list has a season added to it rather than single episodes, but that doesn't make much sense to me.

Traceback (most recent call last):
  File "c:\Users\Projects\TraktToXML\main.py", line 24, in <module>
    print(test.get_list('test'))
  File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\users.py", line 457, in get_list
    return UserList.get(title, self.username)
  File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\core.py", line 554, in inner
    return generator.send(json_data)
  File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\users.py", line 113, in _get
    ulist.get_items()
  File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\core.py", line 554, in inner
    return generator.send(json_data)
  File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\users.py", line 149, in get_items
    episode = TVEpisode(show_data['title'], item_data['season'],
  File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\tv.py", line 659, in __init__
    self._get()
  File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\core.py", line 552, in inner
    json_data = self._handle_request('get', url)
  File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\core.py", line 529, in _handle_request
    raise self.error_map[response.status_code](response)
trakt.errors.NotFoundException: Not Found - method exists, but no record found`

Code used to get the above error.

import trakt.core
from trakt import users
<auth removed>

myUser = users.User('username')
myUser.get_list('test')

Replace the last two lines from above with the following to get the next error.

myList = users.UserList.get('test','username')
Traceback (most recent call last):
  File "c:\Users\Projects\TraktToXML\main.py", line 26, in <module>
    myList = users.UserList.get('Test','unknownwitcher')
  File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\core.py", line 554, in inner
    return generator.send(json_data)
  File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\users.py", line 113, in _get
    ulist.get_items()
  File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\core.py", line 554, in inner
    return generator.send(json_data)
  File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\users.py", line 149, in get_items
    episode = TVEpisode(show_data['title'], item_data['season'],
  File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\tv.py", line 659, in __init__
    self._get()
  File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\core.py", line 552, in inner
    json_data = self._handle_request('get', url)
  File "C:\Users\Projects\TraktToXML\base\lib\site-packages\trakt\core.py", line 529, in _handle_request
    raise self.error_map[response.status_code](response)
@UnknownWitcher UnknownWitcher changed the title unable to grab lists that don't have spaces/hyphens in their names. trakt.errors.NotFoundException: Not Found - method exists, but no record found Jul 19, 2022
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

1 participant