mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Can't login or save items, unexpected end of JSON input #1350
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @BrodyStone21 on GitHub (Aug 22, 2022).
I'm currently using Vaultwarden 1.25.2 on my 64-bit Ubuntu 21.04.1 LTS server. I've been running Vaultwarden for months and have never had any issues. Before this issue surfaced, I was using the latest tag which was pulled three weeks ago. After updating, the issue persists.
Upon trying to save a login via the chrome extension, I received an error stating "Unexpected end of JSON input". I then went to the web interface of Vaultwarden and tried to login. Same issue.
Here are my logs, I'm not seeing anything in here that would be causing the issue. Any help is appreciated.
EDIT: After trying several times to login and receiving the same error over and over again, I tried logging in with the wrong password and received an error stating the wrong username and password. I then tried logging in with the correct username and password, and it worked. I do not know what happened. Any help in preventing this from occurring in the future would be appreciated.
Here are the logs after a successful login.
@aclare92 commented on GitHub (Aug 22, 2022):
Just popping a message on here too that I have the same and also when going into the /admin page, with the ADMIN_TOKEN, a plain white page loads, no content, where the view source is simply and empty
<head>and<body>. The last thing I remember doing was adding a new login for a duplicate URL, I needed two credentials saving for the same URL, and thought that might be the problem, but I restored from a previous backup and this was still showing the same error so looks to be the application itself.Same as the user above, this just suddenly happened with no updates to the container, happened mid-production, I am tied to a specific release, vaultwarden/server:1.25.0-alpine, due to another issue I had recently
Edited: forgot to escape the html code above
@BlackDex commented on GitHub (Aug 22, 2022):
It probably is an issue with the reverse proxy. If you are able to bypass the the reverse proxy please try that, and see if this works.
@evertinker commented on GitHub (Aug 22, 2022):
same issue "Unexpected end of JSON input". if i try to bypass reverse proxy (traefik) by using local ip, i can't use https, and get a message saying https is required to login to bitwarden. don't have time right now to setup a proper bypass with https.
@BlackDex commented on GitHub (Aug 22, 2022):
Well, there hasn't been a release of Vaultwarden the past 18 days if using the
testingtag, and 28 days if using the latest. So, if something happened suddenly, then there must be something else changed within the chain towards Vaultwarden.I have tested it with multiple clients on a alpine based version with nginx as a reverse proxy, and it all works fine.
@evertinker commented on GitHub (Aug 22, 2022):
I got it working again:
I'm running the docker through a traefik and a cloudflare tunnel. I noticed my cloudflared daemon was out of date so I updated to latest version and now everything is working again. Hope this helps someone else!