Login with device doesn't work, PUT response status 422 - Unprocessable entity #1377

Closed
opened 2026-04-06 01:52:53 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Majestic7979 on 11/5/2023

I am running behind traefik 2, I get the websockets connection just fine. I also get push notifications. I get the fingerprint phrase popup on my cellphone and in my desktop application.

Doing F12 on the browser and the Bitwarden desktop to see what's going on...

GET status 200 response:

{
    "creationDate": "2023-11-05T17:19:35.974556178Z",
    "id": "xxxxxxxxxxxx-xxxx-xxxxx-xxxxx-xxxxxxxxx",
    "key": "",
    "masterPasswordHash": "",
    "object": "auth-request",
    "origin": "https://my.own.domain",
    "publicKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "requestApproved": null,
    "requestDeviceType": "Chrome Browser",
    "requestIpAddress": "192.168.0.1",
    "responseDate": null
}

PUT status 422 payload:

{"key":"xxxxxxxxxxxxxxxxxxxxxxxxx","deviceIdentifier":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx","requestApproved":true}

Response

{
  "error": {
    "code": 422,
    "reason": "Unprocessable Entity",
    "description": "The request was well-formed but was unable to be followed due to semantic errors."
  }
}

I am also a little confused as to why my requestIpAddress is my router's IP on my local network!? If I'm running from traefik shouldn't my IP be the public internet IP at the WAN?

End result is that I receive the notification but when I approve or deny nothing happens. On the cellphone I get an additional error: "We were unable to process your request. Please try again or contact us".

*Originally created by @Majestic7979 on 11/5/2023* I am running behind traefik 2, I get the websockets connection just fine. I also get push notifications. I get the fingerprint phrase popup on my cellphone and in my desktop application. Doing F12 on the browser and the Bitwarden desktop to see what's going on... GET status 200 response: ``` { "creationDate": "2023-11-05T17:19:35.974556178Z", "id": "xxxxxxxxxxxx-xxxx-xxxxx-xxxxx-xxxxxxxxx", "key": "", "masterPasswordHash": "", "object": "auth-request", "origin": "https://my.own.domain", "publicKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "requestApproved": null, "requestDeviceType": "Chrome Browser", "requestIpAddress": "192.168.0.1", "responseDate": null } ``` PUT status 422 payload: ``` {"key":"xxxxxxxxxxxxxxxxxxxxxxxxx","deviceIdentifier":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx","requestApproved":true} ``` Response ``` { "error": { "code": 422, "reason": "Unprocessable Entity", "description": "The request was well-formed but was unable to be followed due to semantic errors." } } ``` I am also a little confused as to why my requestIpAddress is my router's IP on my local network!? If I'm running from traefik shouldn't my IP be the public internet IP at the WAN? End result is that I receive the notification but when I approve or deny nothing happens. On the cellphone I get an additional error: "We were unable to process your request. Please try again or contact us".
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#1377