I am trying to download files from my azure app service using python. I can manually connect to it with Winscp using the FTPS endpoint as hostname (which auto assigns the port to 990 if relevant) and the username and password in the FTSP credentials. The ftplib docs example works for me but I am unsuccessful to connect to my own azure host.
The following attempts result in socket.gaierror: [Errno 11001] getaddrinfo failed:
from ftplib import FTP
ftp = FTP('url as written the app service overview') #attempt 1
ftp = FTP('FTPS endpoint as written in the FTPS credentials in the deployment center') #attempt 2
The following attempts result in TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or.. :
from ftplib import FTP
ftp = FTP('url as written the app service overview without the https://') #attempt 3
ftp = FTP('url as written the app service overview without the https://', assigned port in the Winscp connection) #attempt 4
ftp = FTP('Virtual IP address written in the app service properties) #attempt 5
Any ideas which is the right setting for the host input in FTP(), Or any other solutions?