question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sync error to Standard Notes then a shutdown error

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Mikeschercommented, Jan 18, 2021

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

1reaction
Mikeschercommented, Jan 1, 2021

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 😄)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Love the app but please add a manual sync/save option to ...
Everything appeared "synced" when I shut down. I formatted the computer and reinstalled Ubuntu 16.04 LTS/Standard Notes and the note I had ...
Read more >
notes not syncing - Apple Community
I've turned off/on Notes on my iCloud account and still no syncing. Anyone else having the same problem or know of a solution?...
Read more >
Fix issues when you can't sync OneNote
Click File > Info > View Sync Status. In the Shared Notebook Synchronization dialog box that opens, check for any error code and...
Read more >
Evernote app not saving! "Sync error failed due to ...
I'm getting the error, "SYNCHRONIZATION FAILED DUE TO AN ... If the 'Note' is not available in your trash or on your web...
Read more >
Error on shut down- Sync Services.exe Application Error
Plug it in and run chkdsk. Start>run. type in: chkdsk d: /f. Click OK. NOTE: d: is the drive letter for your USB...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found