celiao / tmdbsimple

A wrapper for The Movie Database API v3.
GNU General Public License v3.0
582 stars 121 forks source link

Connection Error while calling Function #83

Closed theyashl closed 2 years ago

theyashl commented 3 years ago

Code: tmdbsimple.TV().airing_today()

Expected Behavior: Method should return a list of TV objects

Observed Behavior: Connection to server getting aborted because of Connection Error.

Possible Problem: The code is trying to reuse the connection but the server is closing it because it has been idle for too long.

celiao commented 2 years ago

This code works fine:

TV Airing Today Example

import tmdbsimple as tmdb
tmdb.API_KEY = '<your api key>'
results = tmdb.TV().airing_today();
results

Please compare it to what you are using.