-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
π Bug Report: Failed to parse page JSON data: expected value at line 1 column 1 (11/18) #324
Comments
@grngxd You mentioned some instances are up and working, which ones? |
My Redlib is giving this error, but so is my backup Libreddit that usually works when Redlib doesn't. I am able to view Reddit directly just fine (from same IP). |
https://libreddit.privacydev.net/ was working when i tested it, its dead now. @sigaloid |
Ah, possibly still being cached. |
From my 1-minute testing, no instance seems to be functional. Still going to check more, though. |
Same thing here. But another frontend, Eddrit (repo) does work, for some reason. |
Is the process for debugging this documented? I'd like to dump the underlying request/response. |
I just noticed this with my private instance. Interestingly enough, queries to the json endpoints succeed with curl but fail in redlib. |
Unfortunately there's not much in terms of debugging. There was a PR up a few weeks back to disable TLS verification which would be the first step but we would also need to add proxy support. We're on an old version of hyper so it might be a pain to do that. It's been on my back burner for a while because it's trivial to issue the two exact requests Redlib sends, and if it works, it's definitely a TLS signature error. good news is that I'm fairly certain that the issue is another TLS fingerprinting issue because issuing the same requests independent of our TLS stack works just fine. So I might be forced to upgrade that anyway in the course of fixing it. Bad news is, of course, that this means it's officially a cat and mouse game between me and some Reddit SWE. That just hurts - other frontends like previously mentioned aren't being targeted like Redlib is! I guess it's because we're the most popular. :( Anyway. Working on finding a fix now |
This has to be one of the best supported selfhosted apps I use - I always wake up, notice Reddit isn't working, have a coffee and notice it's fixed! Always appreciate the hard work @sigaloid β |
https://reddit.privacy.com.de/ is throwing this error on the VPN IP I am usually on, and also on my home IP! I realized you said to check a second IP after I had already filled out the info but maybe this is useful anyway (it's for the VPN).
EDIT: |
@sigaloid I added some instrumentation and ran it locally. Are you working by trial and error? Do you run the real reddit app and then compare? PS. Have we considered filing a support ticket? π |
I test with the two basic requests that tell me where in the stack in the error is; basically just token request then /r/popular with the token auth (matching the same headers and all). If that works in python/curl, I know the issue is within the TLS stack. That network policy error is pretty common, back when the API was easier to work with it happened when you had certain messages in your user agent. Nowadays it means something in your request is making the edge CDN's and WAF's concerned. |
Shows Error 500, so it's probably also blocked.
They might just have started with the most popular project. |
Is that what's happening today too? FWIW, they could just be targeting third party use generally. I'm sure they have a lot of bots to contend with that cause them significantly worse headaches. They may have also pushed out a new app apk a couple days ago and I wonder whether they're making corresponding changes there too. |
Even the pre-#305 commits of redlib are broken, they worked previously after frequent restarts |
Ah, phew, glad it's not just redlib π
I don't know if they'd break new apps that quickly. I hope not, as that'll really increase my maintenance workload. Anyway, good news all, I've confirmed a fix in a96bebb by switching to EDIT: okay, had the fix wrong, lol, header fingerprinting was identified as the culprit |
Just pulled and restarted. Can confirm working on my self-hosted instance. Thanks for being so responsive! |
Thanks for your hard work on this. Unfortunately, it looks like the cross-compilation is broken: https://github.com/redlib-org/redlib/actions/runs/11917620723/job/33213127030. Realized when I pulled the latest on my ARM server and it was still out-of-date. Any chance for a fix? |
I pulled from there 5 minutes ago. And it sill says: I do it from my Pi4 at home with my public home ip. thats different from my public server ip where the container doesnt even start. (both arm) |
Yep, arm build is unfortunately broken due to the switch. I'll be looking at this when I get a chance. #326 |
I am still getting this error on the latest version (sha-96e40e888742):
Instance is running on a residential IP and CURLing reddit / accessing reddit in browser works fine. |
Can you by chance test on another IP? This sounds like #318 |
same issue, tried my local ip, vpn ip and datacenter ip. same error on all, latest commit build |
Grabbed a new v4 (and v6 prefix), same issue - don't think this is IP-related, unless reddit decided to ban my entire ISP. |
curl/curl#9362 check this. |
I'm just a normie and new around here, but my non-educated guess is that this is because the docker image may be a few commits behind the latest code commit. The docker image is probably not being rebuilt and published every time there is a new commit (reasonably so). Feel free to correct me if I'm off my rocker. |
Showerthought: what if we changed the license to something that prohibited companies with more than $100m in revenue from reading any code from the repository without paying $10m for a license, change the fingerprinting again, know that they are violating the license by reading your commits, sue them for said $10m dollars, and during discovery get them to divulge how their fingerprinting works? ( I don't have anything actually constructive to add, so hopefully I at least made someone laugh. We're rooting for you @sigaloid ! ) |
It's actually built on every single commit, so if you run into any errors, the first thing you should do is pull a new version (that's why I added that message). Currently the latest version does work, so definitely pull it. And that includes you ARM folk :D |
I dropped him a few bucks here a few hours ago. His dedication is amazing! |
I think it's most likely a TLS fingerprinting issue too, we should replicate the TLS fingerprint from the Android client. We should copy the TLS extensions using something like Wireshark, and try to replicate it. :) |
Do it! I did my part! o7 |
|
Thanks for all your effort! |
Appreciate the work again! Some sleuthing indeed π΅π» |
Thanks for all of the kind words and donations. Very motivational during these times of high pressure :) |
Issue seems to be back again on my instance unfortunately... |
Unable to reproduce, perhaps give it a few minutes? |
Still unavailable for me, it was working fine till I posted the message - is there any way I can debug? |
Try from another IP - I'm not getting it residentially nor commercially. It may be a widespread issue just taking longer to reach the edge CDN servers I'm nearest. But more than likely #318 |
its working fine for me after pulling the latest docker image |
Yup it was an IP ban, thanks for the tip - have posted a workaround with Cloudflare WARP inside docker compose here: #318 (comment) |
That's really weird, nothing in those commits should have changed anything (d3ba5f3...6be6f89). Removal of X-Reddit-Device-Id perhaps, but that no longer is sent from my tests... I can't reproduce. I'd say it's #318 but if it's working on an older version... Is this reproducible consistently? There's some things that are set non-deterministically in the spoofer. |
It's consistent. I just downloaded the latest build again, and immediately encountered the error. Reverted to the older version again and it's fine. It's a private instance, too. I'm the only one using it. |
I wouldn't recommend downloading builds, the release system is a little weird and the releases get overwritten by new commit builds (but not the one labeled I would recommend cloning the code and checking out the commits in question (right now would be good to test |
Works fine for me on the latest commit, on older versions I'm usually blocked almost immediately. (Private instance with a data center IP.) |
The current version of redlib in nixpkgs is already 20 days old and does no longer work because of a change on reddit's side, see: redlib-org/redlib#324.
I'm having this issue on the latest pull. I run the docker container and it looks like my residential IP address might be blocked? I'm being told to sign in if I visit regular Reddit. Let me know if theres any more info I can provide or if Ive done Something wrong |
Cannot reproduce - unfortunately if your IP is flat-out banned there's not much you can do without some kind of proxying solution. Perhaps try this in a docker-compose? |
Encountering this, and it seems like a new push of banning again, as many of the public instances are also going down: |
I'm the only one getting Already updated to last commit and restarted the intance. |
This issue has been fixed and a new image has been released.Pull and update - do not comment here saying it's not fixed unless your error page says "β Instance is up to date."Update: this situation is rapidly changing, please check bottom of thread.
Update 2: Been a day or so since it's been broken, please pull a new image!
The text was updated successfully, but these errors were encountered: