Mikescher/AlephNote

Sync error to Standard Notes then a shutdown error

Closed this issue ยท 5 comments

If I try to sync I get the following error.

Error while syncing data
Exception while syncing notes: server sync.standarnotes.org returned status code: 500: Internal Server Error

AlephNote.PluginInterface.Exceptions.RestStatuscodeException: Server sync.standardnotes.org returned status code: 500 : Internal Server Error
   at AlephNote.Common.Network.SimpleJsonRest.GenericTwoWay[TResult](Object body, String path, HttpMethod method, Int32[] allowedStatusCodes, String[] parameter)
   at AlephNote.Common.Network.SimpleJsonRest.PostTwoWay[TResult](Object body, String path, String[] parameter)
   at AlephNote.Plugins.StandardNote.StandardNoteAPI.Authenticate003(ISimpleJsonRest web, APIAuthParams apiparams, String mail, String uip, AlephLogger logger)
   at AlephNote.Plugins.StandardNote.StandardNoteAPI.Authenticate(ISimpleJsonRest web, String mail, String password, AlephLogger logger)
   at AlephNote.Plugins.StandardNote.StandardNoteConnection.RefreshToken()
   at AlephNote.Plugins.StandardNote.StandardNoteConnection.CreateAuthenticatedClient()
   at AlephNote.Plugins.StandardNote.StandardNoteConnection.StartSync(IRemoteStorageSyncPersistance idata, List`1 ilocalnotes, List`1 localdeletednotes)
   at AlephNote.Common.Repository.SynchronizationThread.DoSync()

Then I get this error:
Shutting down connection failed
Connection will be forcefully aborted

System.Exception: Background thread timeout after 30sec
   at AlephNote.Common.Repository.SynchronizationThread.WaitForSyncStop(Int32 seconds)
   at AlephNote.Common.Repository.SynchronizationThread.WaitForStopped(Int32 seconds)
   at AlephNote.Common.Repository.SynchronizationThread.SyncNowAndStopAsync()
   at AlephNote.Common.Repository.NoteRepository.Shutdown(Boolean lastSync)
   at AlephNote.WPF.Windows.MainWindowViewmodel.OnClose(EventArgs args)

I have attached both log files:
Log.xml.log
Log2.xml.log

Hey, yeah I got the same error yesterday.
It seems SN changed their api a bit without updating the docs (I'm currently talking in the SN slack server about this).

For now you can use the 1.6.2 version of the SN plugin (build from git master) to fix the issue (simply replace the StandardNotePlugin.dll in your Plugins folder).

It looks like I will have to make a few adjustments to the SN plugin, because they plan to migrate all users to the 004 protocol version next month, so I guess I will have to implement that rather soon.
I will probably implement both in the next AlephNote version (as soon as I've recovered from silvester :D)

/see also commit 9b5300d

Thanks for the workaround. ๐Ÿ˜€

I really appreciate Alephnote. Lightweight and full featured.

Thank you!

if you plan use the 1.7.0 prerelease be sure to force a full re-sync (Edit -> delete local data and sync new) after upgrading, otherwise you will et sync errors.
I will make a 1.7.1 build later where it will automatically force a resync after updating