redlib icon indicating copy to clipboard operation
redlib copied to clipboard

🐛 Bug Report: Failed to parse page JSON data: expected value at line 1 column 1

Open dave0003 opened this issue 2 years ago • 13 comments

Describe the bug

When a link to an individual post, or post comments is clicked, this error is displayed consistently:

Failed to parse page JSON data: expected value at line 1 column 1

Steps to reproduce the bug

Install 0.34.0, open redlib feed (displays fine), click on individual post or comments.

What's the expected behavior?

Display the individual post.

Additional context / screenshot

Running latest version 0.34.0 binary.

dave0003 avatar May 31 '24 07:05 dave0003

I get the same error.

When trying to go on the home page I get this: Couldn't send request to Reddit: error trying to connect: dns error: failed to lookup address information: Name does not resolve

reterkha avatar May 31 '24 07:05 reterkha

Yep same here, maybe a change on reddit's side to combat external clients?

gillescoolen avatar May 31 '24 08:05 gillescoolen

wonder if it has any relation to the issue Android clients are facing? revanced-patches#3253

dioxias avatar May 31 '24 08:05 dioxias

I get a similar but different error, the homepage or any sub page says: Failed to parse page JSON data: expected value at line 2 column 5.

I tried to run redlib v0.34.0 from the console, the the following lines were put:

Running Redlib v0.34.0 on 0.0.0.0:8080!
 ERROR redlib::client > Got an invalid response from reddit expected value at line 2 column 5. Status code: 200 OK
 ERROR redlib::utils  > Error page rendered: Failed to parse page JSON data: expected value at line 2 column 5

arloan avatar May 31 '24 10:05 arloan

It is already fixed in latest version

cargo install --git https://github.com/redlib-org/redlib

Duplicate of #118

qarmin avatar May 31 '24 12:05 qarmin

I'm still on 0.34.0, and it started working again, so I guess it's sporadic. Hopefully there will be a new build to include the fix soon.

dave0003 avatar May 31 '24 12:05 dave0003

My 0.31 also started working again.

binamov avatar May 31 '24 16:05 binamov

https://github.com/ReVanced/revanced-patches/pull/3253

Looks like Reddit broke OAuth for a day. It broke all the Android clients.

Silvenga avatar May 31 '24 17:05 Silvenga

I get a similar but different error, the homepage or any sub page says: Failed to parse page JSON data: expected value at line 2 column 5.

I tried to run redlib v0.34.0 from the console, the the following lines were put:

Running Redlib v0.34.0 on 0.0.0.0:8080!
 ERROR redlib::client > Got an invalid response from reddit expected value at line 2 column 5. Status code: 200 OK
 ERROR redlib::utils  > Error page rendered: Failed to parse page JSON data: expected value at line 2 column 5

It works again since last night, dont know why.

arloan avatar Jun 01 '24 03:06 arloan

I get the same error.

When trying to go on the home page I get this: Couldn't send request to Reddit: error trying to connect: dns error: failed to lookup address information: Name does not resolve

I'm getting this error with the homepage on the latest docker image (v 0.31.0). Running the v0.34.0 binary directly resolves the issue. I'm not sure what the delta between the two versions is, though.

cmhobbs avatar Jun 09 '24 23:06 cmhobbs

The latest docker image should be 0.34.0

sigaloid avatar Jun 10 '24 22:06 sigaloid

The latest docker image should be 0.34.0

It may be a different issue but pulling quay.io/redlib/redlib:latest results in v0.31.0 for me. We don't have to solve that in this thread. The point I was trying to make is that this issue appears to be resolved in v0.34.0.

cmhobbs avatar Jun 12 '24 21:06 cmhobbs

I think that's on your end - if I pull quay.io/redlib/redlib:latest, and run it, I see 0.34.0 in the bottom. Nonetheless, you're right- closing

sigaloid avatar Jun 14 '24 03:06 sigaloid