Script encountering authentication issues with WebDAV server (Outlook.com)

Advertisement

jdProm
Joined:
Posts:
3

Script encountering authentication issues with WebDAV server (Outlook.com)

Hello,

I am trying to transfer SQL files from a local folder to OneDrive using WinSCP with the following batch script:
@echo off
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
  /command ^
    "open davs://transferTest@outlook.com:mypassword@d.docs.live.net/96CD15E62736DEE8/Dokumenti/IzvozPodataka" ^
    "put C:\izvoz\*.sql" ^
    "exit"
 
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
  echo Success
) else (
  echo Error
)
But I get the following error:
Connecting to host...
Authenticated.
Starting the session...
Error changing directory to '/96CD15E62736DEE8/Dokumenti/IzvozPodataka'.
Authentication failed.
Could not authenticate to server: ignored Wlid1.1 challenge
Error
Press any key to continue . . .
I have double-checked the username and password, and they are correct. Can you tell me where the problem might be? The script was running smoothly until about two weeks ago (with the same credentials). As a test, I rewrote this script to upload files to another OneDrive account, and it worked properly. Is there possibly a problem with the account transferTest@outlook.com?

Thank you!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,200
Location:
Prague, Czechia

Re: Script encountering authentication issues with WebDAV server (Outlook.com)

Can you post session log files for both accounts?

Reply with quote

martin
Site Admin
martin avatar

Re: Script encountering authentication issues with WebDAV server (Outlook.com)

Can you login using the transferTest from WinSCP GUI?

Reply with quote

jdProm

WINSCP GUI

Yes, I can log in to this account via WinSCP GUI, but when I try to transfer a file from a local folder to the IzvozPodataka folder on OneDrive, I get a '403 Forbidden' error.

Reply with quote

Advertisement

RandomUser447
Guest

I have the same issue

After I updated the OneDrive application on my Android phone I started to have the same issue with the WebDAV connection in WinSCP.
I still didn't found a solution until now.

Reply with quote

gholmann
Guest

Same issue here

I'm having the same error when trying to upload files from local to OneDrive / WebDAV. Has anyone found a solution?

Reply with quote

martin
Site Admin
martin avatar

Re: Same issue here

Do you mean that you can login and browse folders, but you cannot upload? Anywhere? Or to some specific folders only?

Reply with quote

Advertisement

CodeGnome
Guest

I have the same problem

I can browse all directories in the GUI, but I get the error message
Could not authenticate to server: ignored Wlid1.1 challenge
when I try to upload a file.

Reply with quote

j150us
Joined:
Posts:
1

I get exact same error when accessing OneDrive from WinSCP
Authentication failed.
Could not authenticate to server: ignored Wlid1.1 challenge
If I click OK all files and directories are displayed except for parent directory name appears among other directories and there is no parent directory icon with an arrow on it and two dots to navigate to parent directory.
If I click parent directory name that appears among the names of its subdirectories I get error message:
Error changing directory to [parent directory name].
I can still download files but If I try to upload something I get error message "Authentication failed".
  • WinSCP_OneDrive_Error.png (6.05 KB, Private file)

Reply with quote

martin
Site Admin
martin avatar

@j150us: Is it regular/personal OneDrive? Or some business account? Or some Sharepoint?

I have sent you an email with a debug version of WinSCP to the address you have used to register on this forum.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum