Recently, there have been times when I cannot synchronize with OneDrive, and when I try to synchronize again at that time, the following error message appears with a message that the authentication token cannot be obtained, making it difficult to synchronize settings. I am having trouble because I cannot synchronize settings easily (sometimes I can synchronize settings if I restart my PC)
request to httpx(changed "s" to "x")://login.microsoftonline.com/common/oauth2/v2.0/token failed, reason: connect ECONNREFUSED 2603:1047:1:a0::15:443
In this case I would not wait for a custom error analysis to solve the problem. Login to your dropbox account (web interface), delete the Joplin folder, go back to Joplin while offline, create a backup, go online and sync. DO NOT use the "re-upload local data" setting / feature built into Joplin.