Error 111 when POSTing to my web server from PythonAnywhere

Username (e.g. epiz_XXX) or Website URL

My account: epiz_27721831

Error Message

This error message isn’t coming from InfinityFree, but from another service I’m using for a web app, namely PythonAnywhere. I have a script there that’s supposed to POST some files to the web server, but every time I run it, it brings up this error: “ConnectionRefusedError: [Errno 111] Connection refused”.

Other Information

The script uses Python 3.8, and POSTs using the ftplib module. I’ve used the same line of code — upload = ftplib.FTP(“ftpupload.net”,“epiz_27721831”,[my password]) — in another program on my local machine, and it works just fine.

Hi and welcome to the forum

if I understood the problem well:

another reason could be this

4 Likes

Oh :person_facepalming:t4:, I see. Looks like I’ll have to find another way to run my web app.

Thanks for the tip! :slight_smile:

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.