Mikescher/AlephNote

Error while syncing data

Closed this issue · 1 comments

Hi,

I have an error while syncing data:

Exception while syncing notes: Server sync.standardnotes.org returned status code: 301 : Moved Permanently

AlephNote.PluginInterface.Exceptions.RestStatuscodeException: Server sync.standardnotes.org returned status code: 301 : Moved Permanently
at AlephNote.Common.Network.SimpleJsonRest.GenericDownload[TResult](String path, HttpMethod method, Int32[] allowedStatusCodes, String[] parameter)
at AlephNote.Common.Network.SimpleJsonRest.Get[TResult](String path, Int32[] allowedStatusCodes, String[] parameter)
at AlephNote.Common.Network.SimpleJsonRest.Get[TResult](String path, String[] parameter)
at AlephNote.Plugins.StandardNote.StandardNoteAPI.Authenticate(ISimpleJsonRest webSync, ISimpleJsonRest webAPI, String mail, String password, AlephLogger logger)
at AlephNote.Plugins.StandardNote.StandardNoteConnection.RefreshToken(StandardNoteData dat)
at AlephNote.Plugins.StandardNote.StandardNoteConnection.CreateAuthenticatedClient(StandardNoteData dat)
at AlephNote.Plugins.StandardNote.StandardNoteConnection.StartSync(IRemoteStorageSyncPersistance idata, List1 ilocalnotes, List1 localdeletednotes)
at AlephNote.Common.Repository.SynchronizationThread.DoSync(Boolean isImmediateResync)

Any idea to solve the problem?

see #214

StandardNotes changes their API every few months, and I honestly stopped playing whack-a-mole with them.
Personally I'm hosting a personal SN instance on my own server to have a stable API interface, but in the long run I will probably migrate completely away from them.
Sucks that I paid for the lifetime license...

Anyway, if you want you can have the fun task to reverse engineer the changes by loooking through their github. Feel free to create a PR.