jariz / jariz/MaterialUp

news not loading

Open
#19 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
579
Forks
101
PR merge metrics
No merged PRs in 30d

Description

app try to get url:
https://material.uplabs.com/posts/c/resources?page=2

but site return full HTML page
can you fix this for demo? or tell me please answer format

and app crash
for this you need to write:
private void getRandomCover(List items) {
if (items.size() >0) {
Item item = items.get(new Random().nextInt(items.size()));
UpRequests.getItemImage(item.getId(), this);
}
}

Contributor guide

Open the contributing guide

Research direction

Reproduce the request to https://material.uplabs.com/posts/c/resources?page=2 and inspect how its full HTML response is handled. Trace the getRandomCover method and the UpRequests.getItemImage(item.getId(), this) call to locate the crash. Done means the news response has a supported format and the app no longer crashes when loading it.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.