Error Codes

Advertisement

ben@eds
Joined:
Posts:
3
Location:
USA

Error Codes

Hi! This isn't a bug but I am looking for a place that can explain the error codes. I found one link, https://winscp.net/eng/docs/sftp_codes, but it only has error codes up to 31. The error codes I see are 3 digits. For example 389 (I think it means the file is open but I am not sure). Is there a more comprehensive list of the error codes and their meanings?

Thanks,
Ben

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
33,846
Location:
Prague, Czechia

Re: Error Codes

Can you post a complete message you are getting? Or even better a session file.

Reply with quote

Guest

I am more looking for general documentation so I can proactively write some audit code. I do not have a question on a particular error at the moment. Is there somewhere that describes all of the errors?

Here is a snippet of the log:
[code]

\KBH_US_Model.xlsx' [2020-01-15T16:15:49.000Z] [22116]
. 2020-01-17 00:00:17.454 Copying "C:\Users\Away\EDS Asset Management LP\EDS Asset Management - Documents\Models\Desi Coverage\Home Builders\KBH\KBH_US_EDS_Model.xlsx" to remote directory started.
. 2020-01-17 00:00:17.454 Binary transfer mode selected.
. 2020-01-17 00:00:17.454 Opening remote file.
> 2020-01-17 00:00:17.454 Type: SSH_FXP_OPEN, Size: 107, Number: 145155
< 2020-01-17 00:00:17.469 Type: SSH_FXP_HANDLE, Size: 13, Number: 145155
* 2020-01-17 00:00:17.489 (EOSError) System Error. Code: 395.

* 2020-01-17 00:00:17.489 Access to the cloud file is denied
. 2020-01-17 00:00:17.489 Asking user:
. 2020-01-17 00:00:17.489 Error reading file 'C:\Users\Away\EDS Asset Management LP\EDS Asset Management - Documents\Models\Desi Coverage\Home Builders\KBH\KBH_US_EDS_Model.xlsx'. ("System Error. Code: 395.

. 2020-01-17 00:00:17.489 Access to the cloud file is denied")
< 2020-01-17 00:00:17.489 Script: Error reading file 'C:\Users\Away\EDS Asset Management LP\EDS Asset Management - Documents\Models\Desi Coverage\Home Builders\KBH\KBH_US_EDS_Model.xlsx'.
< 2020-01-17 00:00:17.489 Script: System Error. Code: 395.

< 2020-01-17 00:00:17.489 Access to the cloud file is denied
> 2020-01-17 00:00:17.489 Type: SSH_FXP_CLOSE, Size: 13, Number: 145668
< 2020-01-17 00:00:17.505 Type: SSH_FXP_STATUS, Size: 24, Number: 145668
< 2020-01-17 00:00:17.505 Status code: 0
[code]

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
33,846
Location:
Prague, Czechia

There are no WinSCP error codes.
Error codes you can see in WinSCP error messages are either codes that come from the server, which are protocol specific (like the SFTP codes that you have found). Or they can be Windows system error codes. What is the case of your error code.
https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes
Interestingly, code 395 is not documented.

Reply with quote

Advertisement

You can post new topics in this forum