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

When viewing the subscribed feed, paging is broken #1596

Closed
dessalines opened this issue Jul 15, 2024 · 5 comments · Fixed by MV-GH/LemmyBackwardsCompatibleAPI#69 or #1597
Closed

When viewing the subscribed feed, paging is broken #1596

dessalines opened this issue Jul 15, 2024 · 5 comments · Fixed by MV-GH/LemmyBackwardsCompatibleAPI#69 or #1597
Labels
bug Something isn't working

Comments

@dessalines
Copy link
Member

Jerboa Version

0.0.70

Android Version + Phone

all

Describe The Bug

Paging seems to be broken only when viewing the subscribed feed. Posts loading failed

All and local seem to be working fine.

Context : https://biglemmowski.win/comment/4199437

cc @MV-GH

To Reproduce

  • Click your subscribed feed
  • Scroll down
  • See error, no more posts load.

In the case of a crash or when relevant include the logs

Na

@MV-GH
Copy link
Collaborator

MV-GH commented Jul 15, 2024

I ll take a look and see if i can see anything in the logs

@MV-GH
Copy link
Collaborator

MV-GH commented Jul 15, 2024

Hmm I don't see anything wrong?

00:51:32.277  D  REQUEST: https://lemmy.one/api/v3/post/list?type_=Subscribed&sort=Hot&page=2&page_cursor=P1019081
                 METHOD: HttpMethod(value=GET)
                 COMMON HEADERS
                 -> Accept: application/json
                 -> Accept-Charset: UTF-8
                 -> Authorization: ***
                 -> User-Agent: Jerboa
                 CONTENT HEADERS
                 -> Content-Length: 0
                 BODY Content-Type: null
                 BODY START
                 
                 BODY END
00:51:32.473  D  RESPONSE: 400 
                 METHOD: HttpMethod(value=GET)
                 FROM: https://lemmy.one/api/v3/post/list?type_=Subscribed&sort=Hot&page=2&page_cursor=P1019081
                 COMMON HEADERS
                 -> access-control-expose-headers: vary, content-encoding, content-type
                 -> alt-svc: h3=":443"; ma=86400
                 -> cache-control: private
                 -> cf-cache-status: DYNAMIC
                 -> cf-ray: 8a3d5157492959e3-MXP
                 -> content-type: application/json
                 -> date: Mon, 15 Jul 2024 22:51:32 GMT
                 -> server: cloudflare
                 -> strict-transport-security: max-age=31536000; includeSubDomains; preload
                 -> vary: accept-encoding, Origin, Access-Control-Request-Method, Access-Control-Request-Headers
                 BODY Content-Type: application/json
                 BODY START
                 {"error":"couldnt_get_posts"}
                 BODY END

Why does it throw 400 ?

@MV-GH
Copy link
Collaborator

MV-GH commented Jul 15, 2024

Oh this is why
image

@dessalines
Copy link
Member Author

Nice catch, so we gotta remove the page (maybe only for 0.19.0 and later)

@MV-GH
Copy link
Collaborator

MV-GH commented Jul 15, 2024

I have this already fixed for 0.19.0-2 But I forgot to include this fix in 0.19.3-5

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
None yet
2 participants