Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: I have the same issue

@Sacha00Z1: Same in what sense? Do you have problems with uploading files over 100 MB? Or it does not work at all? The OneDrive WebDAV interface has size limitations. Nothing you can do about it.
Sacha00Z1

I have the same issue

Hi,
I tried to follow the same guide, and got the same results. Any advice on how to fix the issue?
2021-12-22 16:45:26.360 Read block (302 bytes):
. 2021-12-22 16:45:26.360 [<html><head><meta http-equiv="REFRESH" content="0; URL=https://login.live.com/XPError.srf?lc=1033&id=281053&ru=https://d.docs.live.net/ZXYABCMNBVC&tw=18000&fs=0&ts=-1&sec=&mspp_shared=1&ec=e2tw&seclog=10"><script type="text/javascript">function OnBack(){}function OnNext(){}</script></head></html>]
. 2021-12-22 16:45:26.360 Running post_send hooks
. 2021-12-22 16:45:26.360 Request ends, status 401 class 4xx, error line:
. 2021-12-22 16:45:26.360 401 Unauthorized
. 2021-12-22 16:45:26.360 Running destroy hooks.
. 2021-12-22 16:45:26.360 Request ends.
. 2021-12-22 16:45:26.360 sess: Destroying session.
. 2021-12-22 16:45:26.360 sess: Closing connection.
. 2021-12-22 16:45:26.360 sess: Connection closed.
. 2021-12-22 16:45:26.360 auth: No challenges accepted.
. 2021-12-22 16:45:26.360 Request ends, status 302 class 3xx, error line:
. 2021-12-22 16:45:26.360 Could not authenticate to server: Missing Authentication-Info header
. 2021-12-22 16:45:26.360 Running destroy hooks.
. 2021-12-22 16:45:26.360 Request ends.
. 2021-12-22 16:45:26.360 sess: Destroying session.
. 2021-12-22 16:45:26.360 sess: Closing connection.
. 2021-12-22 16:45:26.360 sess: Connection closed.
* 2021-12-22 16:45:26.420 (EFatal) Authentication failed.
* 2021-12-22 16:45:26.421 Could not authenticate to server: Missing Authentication-Info header
* 2021-12-22 16:45:26.421 Connection failed.
martin

Re: another info

Thanks for sharing your findings.
I believe that Cyberduck does not use pure WebDAV when talking to OneDrive.
pier4r

Another info

Another update. WinSCP OneDrive WebDAV works, but I found problems with files larger than 100 Mb.

I tried to search the internet and I changed the webclient registry settings, but they aren't related (as the wiki comment about the revert shows, correctly).

Namely:

I have WinSCP 5.17 and Windows 10 Pro, but somehow something is blocking it. I had to either dig deeper in the internet or to try other possible alternatives. I tried Cyberduck with a 114 Mb file and it worked. I don't know what is the difference between Cyberduck and OneDrive (aside from the fact that Cyberduck is a "OneDrive recognized app") but maybe the dev team can look into it to improve things.

Even if nothing happens, it is still great that WinSCP allows WevDAV transfers, albeit up to a certain size. It is a free product so one cannot expect everything.
pier4r

Just an info

Also to give an update. I tried OneDrive via WebDAV and WinSCP too after the OneDrive website failed me (see https://x.com/Pier4r/status/1276826246391959553) and the WebDAV approach using the file browser failed too.

Two things:

  • if the webgui/filebrowser failed, then restart Windows and then use WinSCP (ONLY WinSCP) Somehow the connection may hang and it hinders WinSCP. You can see in the task manager that the webclient uses the CPU even if everything is closed.
  • remember that in the username you need to put the email domain too. Like pier.example@outlook.com, otherwise it won't work and it says "authentication header missing"
martin

Re: Could not authenticate to server: Missing Authentication-Info header Verbinding mislukt.

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
Wltrng

Could not authenticate to server: Missing Authentication-Info header Verbinding mislukt.

Hi,
I just installed WinSCP on a Win 10 machine, using the commander interface.

After setting up a WebDAV connection to OneDrive following the instructions in https://winscp.net/eng/docs/guide_microsoft_onedrive, I get the message above:
Could not authenticate to server: Missing Authentication-Info header Verbinding mislukt.

Any suggestions?

Thanks,
Marc