Forums

Twython: Cannot Connect to Proxy. Socket error Errno 111

I'm new to Python so I just wanted to quickly test out the environment before I invest in it, so I currently just have a free account. With Twython, I'm making a Twitter bot that automatically tweets something from a text file every 20 minutes. The first run works fine, but after it sleeps for 1200 seconds, I get this error in the console when it automatically tries the next line in the text file:

"Cannot Connect to Proxy. Socket error: [Errno 111] Connection Refused."

When I lowered it down to every 5 minutes,it was able to automatically post without any error for some reason.

Any help with this issue would be greatly appreciated!

That's very odd. Can I take a look at your code? We can see it from our side, but we always ask first.

Could it have been a glitch? Does it happen consistently?