mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-27 07:58:30 +03:00
Unexpected token < in JSON at position 0 #571
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 @jkalousek on GitHub (Jan 18, 2020).
Subject of the issue
When I try to add anything into Organisation I get error "Unexpected token < in JSON at position 0" when I import items they are blank. Normal (personal vault) is working correctly.
I tried removing DB and starting fresh multiple times.
Your environment
config.json:
docker compose:
JS Concole:
Steps to reproduce
Create Organisation, + Add Item, insert any data, when Save is clicked Error message is displayed.
Expected behaviour
Item should be saved...
Relevant logs
There is nothing related in LOGS (LOG_LEVEL=debug, EXTENDED_LOGGING=true)
@dani-garcia commented on GitHub (Jan 18, 2020):
It seems to work for me fine from Firefox, what browser are you using? Do you get any error in the browsers console (F12)?
@jkalousek commented on GitHub (Jan 18, 2020):
I'm using Vivaldi. I added JS output to my original post.
@jkalousek commented on GitHub (Jan 19, 2020):
I tested same steps in standard chrome and I have same problem.
@dani-garcia commented on GitHub (Jan 19, 2020):
Any extensions that could be affecting it? I don't see any onloadwff.js file in the web vault.
@jkalousek commented on GitHub (Jan 19, 2020):
I think that this one is coming from LastPass...
I tried same process in MS Edge which I do not use at all and it gave me another error
An error has occurred.
Čtení se nezdařilo. <- I switched UI to English but this error is still in my native language. In translation it means something like Reading Unsuccessful.
@jkalousek commented on GitHub (Jan 19, 2020):
I just tried to login into vault with my phone and I can add Item from there If Owner is Organisation. I can also do it from Web assuming that I'm on home screen and I add item from there with different owner. I can also view shared Items. But as soon as I go to Organisation page I cannot add or open anything.
@jkalousek commented on GitHub (Jan 19, 2020):
While opening Items from Organisation page there is following JS console output:
@jkalousek commented on GitHub (Jan 19, 2020):
If it helps, when I try to change collection on Item in organisation I get:
@jkalousek commented on GitHub (Jan 19, 2020):
Ok, I'm really sorry, I figured it out. I had RewriteRule for /admin that redirect anyone going through proxy to homepage as security measure. This aperantly affect something on organisation page. I change it to be more specific and not It does work.
@HenryKleinschmidt commented on GitHub (May 18, 2021):
Hi @jkalousek, I'm having the same issue right now. But I cant seem to get it working. Could you share your redirect rule?
I have this currently in my Ngninx Proxy conf but it causes the issue above..
location ~ /(admin) {return 301 https://bitwarden.domain.com/#/;}