mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-01 11:19:52 +03:00
error on create new entries with Android app #10
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 @TMHBOFH on GitHub (May 31, 2018).
Hi,
i get an error if i want to create an new entry.
I use the later docker image from mprasil and the newest Android app.
following error are shown by server
POST /api/ciphers application/json; charset=utf-8:
=> Matched: POST /api/ciphers
=> Error: Couldn't parse JSON body: Error("missing field
type", line: 1, column: 498)=> Outcome: Failure
=> Warning: Responding with 400 Bad Request catcher.
=> Response succeeded.
How i can help to debug the problem?
Thanks a lot for your help and great job on this project.
@mprasil thanks for your nice docker images
best regards
@mprasil commented on GitHub (May 31, 2018):
Hi, I've tested it on my side with Android and can confirm the issue.
@dani-garcia commented on GitHub (May 31, 2018):
Yeah, I just checked right now, the android client sends the json keys with the first letter in uppercase (
Typewhile we expecttype, for example), I'll see what I can do@mprasil commented on GitHub (May 31, 2018):
This would be great use case for case insensitive attribute. Sadly not an option for now, but there are some workarounds.
@dani-garcia commented on GitHub (Jun 1, 2018):
I've modified the inputs to make sure we always receive the same format. I've decided using PascalCase as it seems to be the most commonly used upstream.
This allows adding and modifying ciphers in Android, but for whatever reason the ciphers created on the web don't sync with the phone. I'll investigate more later.
Edit: It seems to be related with organizations, if the user isn't part of any organizations, the sync works fine. I'll try fixing it tomorrow.
Edit 2: Welp, apparently the
MaxStorageGbvalue was too big for android, I was expecting a more complicated fix. It should be fixed now, so I'm closing this.