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.

Achievements does not load - blank page and "error occurred" toast [current master]

See original GitHub issue

Summary:

Every time I go into Achievements, it says “error occurred” and gives me a blank page. Logging out and in again does not fix the problem.

System logs:

06-24 19:30:56,760     [INFO ] [file-logging-thread-1] [OkHttpJsonApiClient] : Url https://tools.wmflabs.org/urbanecmbot/commonsmisc/feedback.py?user=misaochan
2019-06-24 19:30:57,817     [DEBUG] [file-logging-thread-1] [OkHttpJsonApiClient] : Response for achievements is Content-type: application/json

2019-06-24 19:30:58,947     [ERROR] [file-logging-thread-1] [AchievementsActivity] : Fetching upload count failed
java.lang.IllegalStateException: closed
	at okio.RealBufferedSource.rangeEquals(RealBufferedSource.java:407)
	at okio.RealBufferedSource.rangeEquals(RealBufferedSource.java:401)
	at okhttp3.internal.Util.bomAwareCharset(Util.java:471)
	at okhttp3.ResponseBody.string(ResponseBody.java:175)
	at fr.free.nrw.commons.mwapi.OkHttpJsonApiClient.lambda$getUploadCount$0$OkHttpJsonApiClient(OkHttpJsonApiClient.java:102)
	at fr.free.nrw.commons.mwapi.-$$Lambda$OkHttpJsonApiClient$9ZpGX0U5Zngts_jcRCFls7FtEIM.call(Unknown Source:4)
	at io.reactivex.internal.operators.single.SingleFromCallable.subscribeActual(SingleFromCallable.java:44)
	at io.reactivex.Single.subscribe(Single.java:3438)
	at io.reactivex.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.run(SingleSubscribeOn.java:89)
	at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:578)
	at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
	at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.lang.Thread.run(Thread.java:764)

2019-06-24 19:31:01,228     [INFO ] [file-logging-thread-1] [OkHttpJsonApiClient] : Url https://tools.wmflabs.org/urbanecmbot/commonsmisc/feedback.py?user=misaochan
2019-06-24 19:31:01,235     [ERROR] [file-logging-thread-1] [ContributionsFragment] : onFragmentResumed fr.free.nrw.commons.contributions.ContributionsListFragment
2019-06-24 19:31:01,286     [DEBUG] [file-logging-thread-1] [LocationServiceManager] : on location changed
2019-06-24 19:31:01,687     [DEBUG] [file-logging-thread-1] [CustomApiResult] : API response for method https://commons.wikimedia.org/w/api.php is
 <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><userinfo id="4512262" name="Misaochan"/></query></api>
2019-06-24 19:31:01,691     [DEBUG] [file-logging-thread-1] [CustomMwApi] : User id is 4512262 and user name is Misaochan
2019-06-24 19:31:01,692     [DEBUG] [file-logging-thread-1] [ApacheHttpClientMediaWikiApi] : Validate login response is true
2019-06-24 19:31:02,111     [ERROR] [file-logging-thread-1] [ContributionsFragment] : Fetching upload count failed
java.lang.IllegalStateException: closed
	at okio.RealBufferedSource.rangeEquals(RealBufferedSource.java:407)
	at okio.RealBufferedSource.rangeEquals(RealBufferedSource.java:401)
	at okhttp3.internal.Util.bomAwareCharset(Util.java:471)
	at okhttp3.ResponseBody.string(ResponseBody.java:175)
	at fr.free.nrw.commons.mwapi.OkHttpJsonApiClient.lambda$getUploadCount$0$OkHttpJsonApiClient(OkHttpJsonApiClient.java:102)
	at fr.free.nrw.commons.mwapi.-$$Lambda$OkHttpJsonApiClient$9ZpGX0U5Zngts_jcRCFls7FtEIM.call(Unknown Source:4)
	at io.reactivex.internal.operators.single.SingleFromCallable.subscribeActual(SingleFromCallable.java:44)
	at io.reactivex.Single.subscribe(Single.java:3438)
	at io.reactivex.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.run(SingleSubscribeOn.java:89)
	at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:578)
	at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
	at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.lang.Thread.run(Thread.java:764)

2019-06-24 19:31:02,194     [ERROR] [file-logging-thread-1] [QuizChecker] : Fetching upload count failed
java.lang.IllegalStateException: closed
	at okio.RealBufferedSource.rangeEquals(RealBufferedSource.java:407)
	at okio.RealBufferedSource.rangeEquals(RealBufferedSource.java:401)
	at okhttp3.internal.Util.bomAwareCharset(Util.java:471)
	at okhttp3.ResponseBody.string(ResponseBody.java:175)
	at fr.free.nrw.commons.mwapi.OkHttpJsonApiClient.lambda$getUploadCount$0$OkHttpJsonApiClient(OkHttpJsonApiClient.java:102)
	at fr.free.nrw.commons.mwapi.-$$Lambda$OkHttpJsonApiClient$9ZpGX0U5Zngts_jcRCFls7FtEIM.call(Unknown Source:4)
	at io.reactivex.internal.operators.single.SingleFromCallable.subscribeActual(SingleFromCallable.java:44)
	at io.reactivex.Single.subscribe(Single.java:3438)
	at io.reactivex.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.run(SingleSubscribeOn.java:89)
	at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:578)
	at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
	at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.lang.Thread.run(Thread.java:764)

2019-06-24 19:31:02,225     [DEBUG] [file-logging-thread-1] [OkHttpJsonApiClient] : Response for achievements is Content-type: application/json
2019-06-24 19:31:02,277     [DEBUG] [file-logging-thread-1] [MainActivity] : Number of notifications is 0

Device and Android version:

Samsung Galaxy S9 Android 8.1

Commons app version:

Play Store alpha (current master)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
urbanecmcommented, Jun 25, 2019

@maskaravivek thanksRecieved took 8+ minutes, and according to https://lists.wikimedia.org/pipermail/cloud/2019-June/000689.html, it can be optimalized by filtering by log_namespace. Fixed with commons-app/commonsmisc@2b5cc1ab4949d193675659aec48585ae7c39df1d.

1reaction
maskaravivekcommented, Jun 25, 2019

API is not returning a response for me

https://tools.wmflabs.org/urbanecmbot/commonsmisc/feedback.py?user=Maskaravivek

@urbanecm Would you be able to check this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: blank screen when opening powerapps
Solved: Hi, I'm getting a blank screen whenever I try to play the app I've created. I'm not particularly sure why as the...
Read more >
Error Add New Achievement Type or Rank Type | WordPress.org
When trying to add a new Achievement or Rank, the page is blank. as you can see: https://prnt.sc/DeW8JPZbBF8h. Some options I've already checked:....
Read more >
How to Troubleshoot Error Screens on Your Kiosk, Toast Go ...
If these steps don't work, please call Customer Care for assistance. If the problematic device with that same screen is a Kiosk, follow...
Read more >
Loading of Bazarr page failed (blank page) #1822 - GitHub
Its been a while since I visited Bazaar. When I tried to load the page. it does not seems to load and when...
Read more >
Unable to Access the pages in Prod Publish Instance aem 6.5 ...
Solved: Hi Can anyone Let me know how to solve this issue. while working on AEM Publish Instance, facing the issue in all...
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