[GH-ISSUE #742] Cannot Remove U2F key #502

Closed
opened 2026-03-03 01:29:58 +03:00 by kerem · 4 comments
Owner

Originally created by @ataylor1988 on GitHub (Nov 23, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/742

Hello,

I got U2F keys to work, and I have enrolled 2 of them, but i want to remove one of them, and i get an unknown error when i try and remove it
Untitled

Originally created by @ataylor1988 on GitHub (Nov 23, 2019). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/742 Hello, I got U2F keys to work, and I have enrolled 2 of them, but i want to remove one of them, and i get an unknown error when i try and remove it ![Untitled](https://user-images.githubusercontent.com/31442865/69469089-a1baa880-0d54-11ea-9186-0b351b1ce481.png)
kerem closed this issue 2026-03-03 01:29:58 +03:00
Author
Owner

@dani-garcia commented on GitHub (Nov 23, 2019):

Is there any error in the bitwarden_rs log?

Can you check the network tab of the developer tools (usually opens with F12), there should be a failing request (status code 5xx or 4xx), click on it and show us what it says in the response section.

<!-- gh-comment-id:557807120 --> @dani-garcia commented on GitHub (Nov 23, 2019): Is there any error in the bitwarden_rs log? Can you check the network tab of the developer tools (usually opens with F12), there should be a failing request (status code 5xx or 4xx), click on it and show us what it says in the response section.
Author
Owner

@ataylor1988 commented on GitHub (Nov 28, 2019):

Here is a snip from the log, that error occurs after trying to delete the key

[2019-11-28 11:41:24][rocket::rocket][INFO] DELETE /api/two-factor/u2f application/json; charset=utf-8:
[2019-11-28 11:41:24][][ERROR] No matching routes for DELETE /api/two-factor/u2f application/json; charset=utf-8.
[2019-11-28 11:41:24][
][WARN] Responding with 404 Not Found catcher.
[2019-11-28 11:41:24][][INFO] Response succeeded.
[2019-11-28 11:41:36][rocket::rocket][INFO] GET /alive:
[2019-11-28 11:41:36][
][INFO] Matched: GET /alive (alive)
[2019-11-28 11:41:36][][INFO] Outcome: Success
[2019-11-28 11:41:36][
][INFO] Response succeeded.

Here is a screen of the network tab

vault

<!-- gh-comment-id:559591473 --> @ataylor1988 commented on GitHub (Nov 28, 2019): Here is a snip from the log, that error occurs after trying to delete the key [2019-11-28 11:41:24][rocket::rocket][INFO] DELETE /api/two-factor/u2f application/json; charset=utf-8: [2019-11-28 11:41:24][_][ERROR] No matching routes for DELETE /api/two-factor/u2f application/json; charset=utf-8. [2019-11-28 11:41:24][_][WARN] Responding with 404 Not Found catcher. [2019-11-28 11:41:24][_][INFO] Response succeeded. [2019-11-28 11:41:36][rocket::rocket][INFO] GET /alive: [2019-11-28 11:41:36][_][INFO] Matched: GET /alive (alive) [2019-11-28 11:41:36][_][INFO] Outcome: Success [2019-11-28 11:41:36][_][INFO] Response succeeded. Here is a screen of the network tab ![vault](https://user-images.githubusercontent.com/31442865/69829272-f347b500-11e4-11ea-9cb0-ca6b28deae4b.PNG)
Author
Owner

@dani-garcia commented on GitHub (Dec 1, 2019):

Okay it seems that the function to delete a specific key wasn't implemented, so I did it now. Note that until the new version builds, you can just use the disable all keys at the bottom and then add the correct one again as a workaround. Thanks for reporting it!

<!-- gh-comment-id:560156823 --> @dani-garcia commented on GitHub (Dec 1, 2019): Okay it seems that the function to delete a specific key wasn't implemented, so I did it now. Note that until the new version builds, you can just use the disable all keys at the bottom and then add the correct one again as a workaround. Thanks for reporting it!
Author
Owner

@ataylor1988 commented on GitHub (Dec 2, 2019):

Just wanted to report, that i pulled the latest docker and was able to remove the key this morning.

<!-- gh-comment-id:560399275 --> @ataylor1988 commented on GitHub (Dec 2, 2019): Just wanted to report, that i pulled the latest docker and was able to remove the key this morning.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#502
No description provided.