🐛 Bug Report: Couldn't send request to Reddit: error trying to connect: dns error: failed to lookup address information: Name does not resolve
Describe the bug
I can't use redlib because this error pops up instead of the front page
Steps to reproduce the bug
Steps to reproduce the behavior:
- Go to a redlib instance
- get the error
What's the expected behavior?
To be able to see the front page
Additional context / screenshot
On other instances it works fine, but for some reason when I paste my preferences from one of the instances affected by this into a working one it makes the error happen there too
Direct links to posts work (and subreddits too) it's just the front page I think
Same here. What does help for me is clearing cache and cookies for redlib. Then the front page works again.
It does work now, I'll have to resub to some subreddits though
Same here, I cleared cache and cookies and it started working again. I re-subscribed to the subreddits I was inrerested in, reloaded the page and the problem happened again...
I was getting the same error on 0.31.0. I just installed the latest 0.34.0, and it's working again without clearing cache or cookies.
I was getting the same error on 0.31.0. I just installed the latest 0.34.0, and it's working again without clearing cache or cookies.
Thanks for letting me know... I'll wait for the latest tag to be updated to 0.34 then
I've cleared the cache and still getting the issue.
the problem seems only happened on home page when subscribe to 2+ subreddit (subscribe to a single sub doesn't cause this, nor does go to each sub separately)
the problem seems only happened on home page when subscribe to 2+ subreddit (subscribe to a single sub doesn't cause this, nor does go to each sub separately)
Getting the same issue and checked the pihole logs to analyze the requested domain(s).
The DNS resolution logs show two attempts to resolve domain oauth.reddit.comhttps with 3 (NXDOMAIN) responses, which occur after successfully requesting the domain oauth.reddit.com (visiting home/index page)
This might be related. Has anyone observed similar behavior?
For anyone else who uses Docker and would rather not wait for the prebuilt image to get updated to 0.34.0, this Dockerfile got me up and running:
FROM alpine:3.20.0
RUN apk add --no-cache wget
RUN wget https://github.com/redlib-org/redlib/releases/latest/download/redlib && \
mv redlib /usr/local/bin/ && \
chmod +x /usr/local/bin/redlib
RUN adduser --home /nonexistent --no-create-home --disabled-password redlib
USER redlib
# Tell Docker to expose port 8080
EXPOSE 8080
# Run a healthcheck every minute to make sure redlib is functional
HEALTHCHECK --interval=1m --timeout=3s CMD wget --spider --q http://localhost:8080/settings || exit 1
CMD ["redlib"]
Hope it helps someone!
The catsarch instance (https://redlib.catsarch.com, @ v0.33) fixes the problem for me.
Now I'm getting Failed to parse page JSON data: expected value at line 1 column 1 on posts and Failed to parse page JSON data: expected value at line 2 column 5 on subreddits
@millionsofplayers see https://github.com/redlib-org/redlib/issues/118.
This error was fixed in main by v0.33, closing!
Sadly this issue reappeared again .
Please update to the latest docker container so you get the updated error page when you run into this error. I can't reproduce this especially not with more debug info.
See https://github.com/redlib-org/redlib/issues/131#issuecomment-2179316596
Fixed! Sorry about the delay. Couldn't tell it was the multi sub causing this
Weirdly this happens when you ask for some misformed requests but I added an additional more informative error page in 0f7eba717e5ec478ed4e78f7ba9e638b59962d42.