The sync target could not be upgraded due to an error

The sync target could not be upgraded due to an error. For support, please copy the complete content of this page and paste it in the forum: https://discourse.joplinapp.org/

The full error was:

network timeout at: https://api.dropboxapi.com/2/files/list_folder

FetchError: network timeout at: https://api.dropboxapi.com/2/files/list_folder
at C:\Program Files\Joplin\resources\app.asar\node_modules\node-fetch\index.js:126:13

Version details are as below,

Joplin for Desktop (Windows 10)

Copyright © 2016-2020 Laurent Cozic
Joplin 1.2.6 (prod, win32)

Client ID: 3f894ea1969742aea5e8715b15fe4457
Sync Version: 2
Profile Version: 34
Keychain Supported: Yes

Revision: f5f117cb (master)

If you close the app and try again I guess it could work. Timeout is just a temporary error, due to Dropbox or your internet connection.

I tried it already and then only raised the ticket. When I close and open again, it is showing the following notification. The above reported issue showed up after 30 mins when I clicked Restart and Upgrade

The sync target needs to be upgraded before Joplin can sync. The operation may take a few minutes to complete and the app needs to be restarted. To proceed please click on the link. Restart and upgrade