I have always used this function to host my catalogs.
I tried all solutions, including proxy, antivirus, vpn, logout, restart machine, reinstall indesing... I also created a new file to test and error #22 always happens.
I suppose it is happening for every document for you. I would suggest that first you try to rule out issues with your computer setting and the network. The easiest would be try on a different nretwork and using a different computer. Once we identify the culprit we can discuss further.