RileyXX / IMDB-Trakt-Syncer

A python script that syncs user watchlist, ratings and reviews for Movies, TV Shows and Episodes both ways between Trakt and IMDB.
MIT License
74 stars 1 forks source link

AttributeError: 'NoneType' object has no attribute 'text' #86

Open shadjisolomou opened 2 months ago

shadjisolomou commented 2 months ago

Is there already an issue for your problem?

Bug Description

An error occurred while running the script. Please submit the error to GitHub with the following information:

Traceback (most recent call last): File "C:\Users\X\AppData\Local\Programs\Python\Python312\Lib\site-packages\IMDBTraktSyncer\IMDBTraktSyncer.py", line 123, in main trakt_watchlist, trakt_ratings, trakt_reviews, watched_content = traktData.getTraktData() ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\X\AppData\Local\Programs\Python\Python312\Lib\site-packages\IMDBTraktSyncer\traktData.py", line 18, in getTraktData json_data = json.loads(response.text) ^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'text'

Environment

OS: Win10, Uses pip install:yes

Screenshots

No response

RileyXX commented 1 month ago

Are you still having this issue? See if you can get more of the error message there might be some details missing here.

This is kind of a generic error that can happen if the Trakt API is down or if your credentials (api keys etc) are incorrect.