Sync error after changing provider

Operating system

Linux

Joplin version

2.13.0

Sync target

Nextcloud

Editor

Markdown Editor

What issue do you have?

Error. Please check that URL, username, password, etc. are correct and that the sync target is accessible. The reported error was:
PROPFIND : Username or password was incorrect, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured (Exception Sabre\DAV\Exception\NotAuthenticated) (401): <?xml version="1.0" encoding="utf-8"?> <d:error xmlns:d="DAV:" xmlns:s="sabre/dav"> <s:exception>Sabre\DAV\Exception\NotAuthenticated</s:exception> <s:message>Username or password was incorrect, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured</s:message> </d:error> (Code 401)

If the new credentials are not taking effect, create a full jex backup of your notes, create a new profile in joplin, import the backup and then setup the connection to the new Nextcloud provider