Page MenuHomePhabricator

API error when opening the Android app after a too long time
Closed, ResolvedPublic

Description

Error

logcat output when opening the app main page:

message
title: readinglists-too-old, detail: Timestamps passed to "rlechangedsince" cannot be older than "2024-01-23T13:21:21Z".
trace
02-22 14:21:19.312 20372 20372 D org.wikipedia.alpha: >>> MainActivity.EXPLORE.show
02-22 14:21:19.489 20372 20456 D org.wikipedia.alpha: Begin sync of reading lists...
02-22 14:21:19.522 20372 20456 D org.wikipedia.alpha: Fetching changes from server, since 2024-01-01T20:33:58Z
02-22 14:21:19.845 20372 20456 W org.wikipedia.alpha: org.wikipedia.dataclient.okhttp.HttpStatusException: Code: 400, URL: https://hu.wikipedia.org/api/rest_v1/data/lists/changes/since/2024-01-01T20%3A33%3A58Z, title: readinglists-too-old, detail: Timestamps passed to "rlechangedsince" cannot be older than "2024-01-23T13:21:21Z".
02-22 14:21:19.845 20372 20456 W org.wikipedia.alpha: 	at org.wikipedia.dataclient.okhttp.UnsuccessfulResponseInterceptor.intercept(UnsuccessfulResponseInterceptor.kt:16)
02-22 14:21:19.845 20372 20456 W org.wikipedia.alpha: 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
02-22 14:21:19.845 20372 20456 W org.wikipedia.alpha: 	at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
02-22 14:21:19.845 20372 20456 W org.wikipedia.alpha: 	at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
02-22 14:21:19.845 20372 20456 W org.wikipedia.alpha: 	at retrofit2.OkHttpCall.execute(OkHttpCall.java:204)
02-22 14:21:19.845 20372 20456 W org.wikipedia.alpha: 	at retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall.execute(DefaultCallAdapterFactory.java:108)
02-22 14:21:19.845 20372 20456 W org.wikipedia.alpha: 	at org.wikipedia.readinglist.sync.ReadingListClient.getChangesSince(ReadingListClient.kt:70)
02-22 14:21:19.845 20372 20456 W org.wikipedia.alpha: 	at org.wikipedia.readinglist.sync.ReadingListSyncAdapter.onHandleWork(ReadingListSyncAdapter.kt:92)
02-22 14:21:19.845 20372 20456 W org.wikipedia.alpha: 	at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:396)
02-22 14:21:19.845 20372 20456 W org.wikipedia.alpha: 	at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:387)
02-22 14:21:19.845 20372 20456 W org.wikipedia.alpha: 	at android.os.AsyncTask$3.call(AsyncTask.java:394)
02-22 14:21:19.845 20372 20456 W org.wikipedia.alpha: 	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
02-22 14:21:19.845 20372 20456 W org.wikipedia.alpha: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
02-22 14:21:19.845 20372 20456 W org.wikipedia.alpha: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
02-22 14:21:19.845 20372 20456 W org.wikipedia.alpha: 	at java.lang.Thread.run(Thread.java:1012)
02-22 14:21:19.847 20372 20456 D org.wikipedia.alpha: Finished sync of reading lists.
Impact

Reading lists not synced.

Notes
  • I noticed this while trying to debug T358231. I confirmed that it has a user-visible impact:
    • Added [[hu:Müncheni sörpuccs]] (today’s featured article) to my default reading list in the (release) Wikipedia app.
    • Confirmed that it’s visible at https://meta.wikimedia.org/wiki/Special:ReadingLists/Tacsipacsi
    • Confirmed that it’s not visible in the alpha app, even though I even forced the lists to be synced
  • I don’t use the alpha version on a daily basis (Why would I? I have the release version for day-to-day use); it looks like I haven’t opened it for almost eight weeks, and the API doesn’t like this.