Error on activate 2FA #9

Closed
opened 2026-02-04 16:14:23 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @TMHBOFH on GitHub (May 26, 2018).

Hi,
at first thanks for your great work on this project.
I get an "An unexpected error has occurred" if would like enable 2FA.

I use this docker image with Web Vault (version 1.26.0)
the log show
POST /api/two-factor/authenticator application/json; charset=utf-8:
=> Matched: POST /api/two-factor/authenticator
=> Error: Couldn't parse JSON body: Error("invalid type: string "731025", expected u64", line: 1, column: 17)
=> Outcome: Failure
=> Warning: Responding with 400 Bad Request catcher.
=> Response succeeded.

best regards

Originally created by @TMHBOFH on GitHub (May 26, 2018). Hi, at first thanks for your great work on this project. I get an "An unexpected error has occurred" if would like enable 2FA. I use [this docker image](https://github.com/mprasil/bitwarden_rs) with Web Vault (version 1.26.0) the log show POST /api/two-factor/authenticator application/json; charset=utf-8: => Matched: POST /api/two-factor/authenticator => Error: Couldn't parse JSON body: Error("invalid type: string "731025", expected u64", line: 1, column: 17) => Outcome: Failure => Warning: Responding with 400 Bad Request catcher. => Response succeeded. best regards
Author
Owner

@dani-garcia commented on GitHub (May 27, 2018):

Thanks, the clients sometimes send numbers or strings. This should be fixed now.

@dani-garcia commented on GitHub (May 27, 2018): Thanks, the clients sometimes send numbers or strings. This should be fixed now.
Author
Owner

@TMHBOFH commented on GitHub (May 27, 2018):

Thanks for your fast reply.
Should i open an issue on Web Vault?

@TMHBOFH commented on GitHub (May 27, 2018): **Thanks** for your fast reply. Should i open an issue on Web Vault?
Author
Owner

@dani-garcia commented on GitHub (May 27, 2018):

The official server doesn't seem to care about uppercase or lowercase, or about strings or numbers, so it seems like a conscious design choice by the author. I don't think there is a need to open an issue about it.

@dani-garcia commented on GitHub (May 27, 2018): The official server doesn't seem to care about uppercase or lowercase, or about strings or numbers, so it seems like a conscious design choice by the author. I don't think there is a need to open an issue about it.
Author
Owner

@TMHBOFH commented on GitHub (May 27, 2018):

ok Thanks for your help

@TMHBOFH commented on GitHub (May 27, 2018): ok Thanks for your help
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#9