Machine Readable News - Error when using Python SFTP Code

Hello, I am receiving an error when using the below code:

image

The error we're receiving is a timeout error shown below. Grateful for advice on what we may be doing incorrectly which is contributing to the error? To note, I have a working SFTP connection via Filezilla for this. Programmatically connecting via Python is proving difficult howeverimage

Best Answer

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @darren.rogers

    Thank you for reaching out to us.

    I got the same error when running the code on the company's laptop.

    1729156409783.png

    However, I can connect to the SFTP server after using VPN.

    1729156570530.png

    The connection may be blocked from a security application (Zscaler).


  • Hello @darren.rogers

    Please be informed that the code needs to be run with the VPN on my local environment as mentioned by my colleague.

    I strongly suggest you contact your local IT Support to verify if there is any firewall or network policy that blocks a connection between your Python script and the MRN SFTP Remote server.

  • Hi @wasin.w @Jirapongse To confirm our proxy is open & we can make a successful connection via Filezilla. Therefore we are confident we don't have firewall issues at play. Are there any other suggestions as to why we're getting the timeout error?

  • Hi @wasin.w , your latest suggestion has helped us crack the case and get the connection working. Thanks to everyone who has contributed for helping us with this.