-
-
Notifications
You must be signed in to change notification settings - Fork 859
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
404: FetchError: invalid json response body at http://lemmy:8536/api/v3/site #2278
Comments
What guide did you use to install lemmy? Why can't you post the docker logs? |
I followed the Ansible instructions. I upgraded not long after 16.3 became available. If you can share a link with step by step instructions on how to get the Docker logs for you - I am happy to do it. I just do not know how to get them for you. |
If you know how to ssh to your server, then run |
I think I have it - see the attached |
Just run |
The errors were further back then that so I have copied and pasted what I think the errors were apearing in the original log file I ran yesterday: �[36mlemmy-ui_1 |�[0m FetchError: invalid json response body at http://lemmy:8536/api/v3/site? reason: Unexpected end of JSON input �[36mlemmy-ui_1 |�[0m Inferno is in development mode. �[36mlemmy-ui_1 |�[0m FetchError: invalid json response body at http://lemmy:8536/api/v3/site? reason: Unexpected end of JSON input �[34mpostgres_1 |�[0m 2022-04-16 15:58:52.538 UTC [226] ERROR: duplicate key value violates unique constraint "idx_activity_ap_id" I hope that is the info you need. If not let me know. Thanks for your help |
Does this happen on other browsers? Maybe its malforming the request for some reason. |
Those are all logs from lemmy-ui and dont show the cause of the error. Again, run |
This 404 error is a problem I have bumped into on and off since I started using Lemmy through several upgrades. I use a bunch of different hardware and browsers, so I cannot tell you which browsers in the past. But in this most recent incident it was at least: If it happens again, I will not down all the different browsers I try. Here is what the docker-compose logs show lemmy_1 | 2022-05-24T11:49:42.540344Z WARN Error encountered while processing the incoming HTTP request: lemmy_server::root_span_builder: Fetched remote object https://mastodon.social/users/Soul_OffSec which was deleted |
All of that looks normal. Try changing this line to only Also, make sure that your server isnt hitting any limits on cpu or ram. |
Why is this "closed"? I have the same issue: |
Found a bug? Please fill out the sections below. 👍
For front end issues, use lemmy-ui
Issue Summary
A summary of the bug.
I got this error:
404: FetchError: invalid json response body at http://lemmy:8536/api/v3/site
using both the mobile webapp and on the desktop in the Brave Browser
Seems to be random - it just happens when I click on a link or take some other action. I have not been able to isolate it to a specific series of steps - sorry, I know it would be easier to fix if I had,
Sometimes the only way I can fix the situation is by rebooting the virtual machine running my instance
Other times, if I open a new tab it will just work.
Steps to Reproduce
Technical details
sudo docker-compose logs > lemmy_log.out
. - do not know how to do thisThe text was updated successfully, but these errors were encountered: