Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better errormessage for 'could not get some cards' #629

Open
redfast00 opened this issue Aug 4, 2022 · 0 comments
Open

Better errormessage for 'could not get some cards' #629

redfast00 opened this issue Aug 4, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@redfast00
Copy link
Member

When I refresh my feed, I get the 'Could not get some cards' error message. It does not say which cards these are, or show any option to get more information. When I look at adb logcat, this is the output:

08-04 18:11:11.332 19390 30247 D HomeFeedLoader: loadInBackground: Operation REQUEST -> Card Type 4 completed.
08-04 18:11:11.342 19390 30247 D JsonOkHttpRequest: Error while getting data, try to get stale data.
08-04 18:11:11.342 19390 30247 D JsonOkHttpRequest: be.ugent.zeus.hydra.common.network.UnsuccessfulRequestException: Unsuccessful HTTP request, response code is 404
08-04 18:11:11.342 19390 30247 D JsonOkHttpRequest: 	at be.ugent.zeus.hydra.common.network.JsonOkHttpRequest.executeRequest(JsonOkHttpRequest.java:14)
08-04 18:11:11.342 19390 30247 D JsonOkHttpRequest: 	at be.ugent.zeus.hydra.common.network.JsonOkHttpRequest.execute(JsonOkHttpRequest.java:2)
08-04 18:11:11.342 19390 30247 D JsonOkHttpRequest: 	at be.ugent.zeus.hydra.feed.cards.news.NewsRequest.performRequestCards(NewsRequest.java:1)
08-04 18:11:11.342 19390 30247 D JsonOkHttpRequest: 	at be.ugent.zeus.hydra.feed.HideableHomeFeedRequest.execute(HideableHomeFeedRequest.java:1)
08-04 18:11:11.342 19390 30247 D JsonOkHttpRequest: 	at be.ugent.zeus.hydra.feed.operations.RequestOperation.transform(RequestOperation.java:3)
08-04 18:11:11.342 19390 30247 D JsonOkHttpRequest: 	at be.ugent.zeus.hydra.feed.FeedLiveData.executeOperation(FeedLiveData.java:1)
08-04 18:11:11.342 19390 30247 D JsonOkHttpRequest: 	at be.ugent.zeus.hydra.feed.FeedLiveData.access$300(FeedLiveData.java:1)
08-04 18:11:11.342 19390 30247 D JsonOkHttpRequest: 	at be.ugent.zeus.hydra.feed.FeedLiveData$1.doInBackground(FeedLiveData.java:10)
08-04 18:11:11.342 19390 30247 D JsonOkHttpRequest: 	at be.ugent.zeus.hydra.feed.FeedLiveData$1.doInBackground(FeedLiveData.java:1)
08-04 18:11:11.342 19390 30247 D JsonOkHttpRequest: 	at android.os.AsyncTask$3.call(AsyncTask.java:394)
08-04 18:11:11.342 19390 30247 D JsonOkHttpRequest: 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
08-04 18:11:11.342 19390 30247 D JsonOkHttpRequest: 	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
08-04 18:11:11.342 19390 30247 D JsonOkHttpRequest: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
08-04 18:11:11.342 19390 30247 D JsonOkHttpRequest: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
08-04 18:11:11.342 19390 30247 D JsonOkHttpRequest: 	at java.lang.Thread.run(Thread.java:920)
08-04 18:11:11.342 19390 30247 D JsonOkHttpRequest: constructCacheControl: stale data is allowed!
08-04 18:11:11.344 19390 30247 D JsonOkHttpRequest: Stale data was not found.
08-04 18:11:11.344 19390 30247 D JsonOkHttpRequest: be.ugent.zeus.hydra.common.network.UnsuccessfulRequestException: Unsuccessful HTTP request, response code is 404
08-04 18:11:11.344 19390 30247 D JsonOkHttpRequest: 	at be.ugent.zeus.hydra.common.network.JsonOkHttpRequest.executeRequest(JsonOkHttpRequest.java:14)
08-04 18:11:11.344 19390 30247 D JsonOkHttpRequest: 	at be.ugent.zeus.hydra.common.network.JsonOkHttpRequest.execute(JsonOkHttpRequest.java:12)
08-04 18:11:11.344 19390 30247 D JsonOkHttpRequest: 	at be.ugent.zeus.hydra.feed.cards.news.NewsRequest.performRequestCards(NewsRequest.java:1)
08-04 18:11:11.344 19390 30247 D JsonOkHttpRequest: 	at be.ugent.zeus.hydra.feed.HideableHomeFeedRequest.execute(HideableHomeFeedRequest.java:1)
08-04 18:11:11.344 19390 30247 D JsonOkHttpRequest: 	at be.ugent.zeus.hydra.feed.operations.RequestOperation.transform(RequestOperation.java:3)
08-04 18:11:11.344 19390 30247 D JsonOkHttpRequest: 	at be.ugent.zeus.hydra.feed.FeedLiveData.executeOperation(FeedLiveData.java:1)
08-04 18:11:11.344 19390 30247 D JsonOkHttpRequest: 	at be.ugent.zeus.hydra.feed.FeedLiveData.access$300(FeedLiveData.java:1)
08-04 18:11:11.344 19390 30247 D JsonOkHttpRequest: 	at be.ugent.zeus.hydra.feed.FeedLiveData$1.doInBackground(FeedLiveData.java:10)
08-04 18:11:11.344 19390 30247 D JsonOkHttpRequest: 	at be.ugent.zeus.hydra.feed.FeedLiveData$1.doInBackground(FeedLiveData.java:1)
08-04 18:11:11.344 19390 30247 D JsonOkHttpRequest: 	at android.os.AsyncTask$3.call(AsyncTask.java:394)
08-04 18:11:11.344 19390 30247 D JsonOkHttpRequest: 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
08-04 18:11:11.344 19390 30247 D JsonOkHttpRequest: 	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
08-04 18:11:11.344 19390 30247 D JsonOkHttpRequest: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
08-04 18:11:11.344 19390 30247 D JsonOkHttpRequest: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
08-04 18:11:11.344 19390 30247 D JsonOkHttpRequest: 	at java.lang.Thread.run(Thread.java:920)
08-04 18:11:11.344 19390 30247 D HomeFeedLoader: loadInBackground: Operation REQUEST -> Card Type 5 completed.
08-04 18:11:11.348 19390 30247 D HomeFeedLoader: loadInBackground: Operation REQUEST -> Card Type 9 completed.
08-04 18:11:11.349 19390 30247 D LibraryRequest: No favourite libraries, skipping card.
08-04 18:11:11.351 19390 30247 D HomeFeedLoader: loadInBackground: Operation REQUEST -> Card Type 11 completed.
08-04 18:11:11.357 19390 19390 E HomeFeedFragment: Error while getting data.
08-04 18:11:11.357 19390 19390 E HomeFeedFragment: be.ugent.zeus.hydra.feed.FeedException: Exception for card types[5]
08-04 18:11:11.357 19390 19390 E HomeFeedFragment: 	at be.ugent.zeus.hydra.feed.FeedLiveData$1.doInBackground(FeedLiveData.java:16)
08-04 18:11:11.357 19390 19390 E HomeFeedFragment: 	at be.ugent.zeus.hydra.feed.FeedLiveData$1.doInBackground(FeedLiveData.java:1)
08-04 18:11:11.357 19390 19390 E HomeFeedFragment: 	at android.os.AsyncTask$3.call(AsyncTask.java:394)
08-04 18:11:11.357 19390 19390 E HomeFeedFragment: 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
08-04 18:11:11.357 19390 19390 E HomeFeedFragment: 	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
08-04 18:11:11.357 19390 19390 E HomeFeedFragment: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
08-04 18:11:11.357 19390 19390 E HomeFeedFragment: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
08-04 18:11:11.357 19390 19390 E HomeFeedFragment: 	at java.lang.Thread.run(Thread.java:920)
@niknetniko niknetniko added the bug Something isn't working label Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants