nextcloud / notes-android

✎ Android client for Nextcloud Notes app.
https://play.google.com/store/apps/details?id=it.niedermann.owncloud.notes
GNU General Public License v3.0
906 stars 135 forks source link

Synchronisation failed #2093

Open soliyadixit56 opened 3 months ago

soliyadixit56 commented 3 months ago
App Version: 4.1.0
App Version Code: 40010090
App Flavor: play

Files App Version Code: 30280090 (PROD)

---

OS Version: 4.14.186+(Q.1546350_1)
OS API Level: 31
Device: RMX2121L1
Manufacturer: realme
Model (and Product): RMX2121 (RMX2121)

---

java.lang.IllegalStateException: Duplicate key 1351 (attempted merging values 1 and 2)
    at java.util.stream.Collectors.duplicateKeyException(Collectors.java:133)
    at java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:180)
    at java.util.stream.Collectors$$ExternalSyntheticLambda39.accept(Unknown Source:6)
    at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
    at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1642)
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513)
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:503)
    at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:236)
    at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:519)
    at it.niedermann.owncloud.notes.persistence.NotesRepository.getIdMap(NotesRepository.java:463)
    at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.pullRemoteChanges(NotesServerSyncTask.java:208)
    at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.run(NotesServerSyncTask.java:96)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487)
    at java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
    at java.lang.Thread.run(Thread.java:1012)
soliyadixit56 commented 3 months ago

Notes are synchronising. Other sync works fine so issue with notes specifically.

strugee commented 2 months ago

Possible duplicate of #2086

serversghost commented 1 month ago

I get the same "Synchronisation failed" message, though my error log is different. The notes still seem to sync despite the Error message, though they sometimes duplicate.


App Version: 4.2.1
App Version Code: 40020190
App Flavor: fdroid

Files App Version Code: 30290090 (PROD)

---

OS Version: 5.4.233-qgki-ge3632119d135(R.156a4b9-1e8ed-1e8ec)
OS API Level: 33
Device: OP4F39L1
Manufacturer: OPPO
Model (and Product): CPH2197 (CPH2197)

---

java.lang.Exception: java.lang.IllegalArgumentException: Unexpected char 0xfffd at 7 in Upgrade value: h2,http���1.1
 at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.pushLocalChanges(NotesServerSyncTask.java:145)
 at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.run(NotesServerSyncTask.java:94)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:463)
 at java.util.concurrent.FutureTask.run(FutureTask.java:264)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
 at java.lang.Thread.run(Thread.java:1012)