Forums

Failed to establish a new connection: [Errno 101] Network is unreachable - PIad Plan

Hello I'm trying to consume a movie database API with http.client

conn = http.client.HTTPSConnection('api.themoviedb.org')

conn.request("GET", "/3/genre/movie/list?api_key=???????????")

res = conn.getresponse()

but I get "Failed to establish a new connection: [Errno 101] Network is unreachable"

Can you please help?

Thanks

Are you doing that in a console that you created after you upgraded?

Nope, that was the issue. Thanks!

Glad we could help :-)