question

Upvotes
1 1 3 3

Machine Readable News - Error when using Python SFTP Code

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

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 however

python#technologynews
1729080018941.png (85.8 KiB)
1729080179651.png (75.2 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
86.8k 294 53 79

@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).



1729156409783.png (32.4 KiB)
1729156570530.png (51.6 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
27.6k 67 18 14

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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.