Bitwarden cli breaks when creating a send with --maxAccessCount flag #1184

Closed
opened 2026-02-20 08:08:07 -05:00 by deekerman · 1 comment
Owner

Originally created by @jcalonso on GitHub (Dec 31, 2021).

Subject of the issue

Bitwarden cli breaks when creating a send with --maxAccessCount or -a flags.

Deployment environment

  • vaultwarden version: 1.23.1
  • Install method: Docker

  • Clients used: bitwarden-cli

  • Reverse proxy and version: traefik 2.5

  • MySQL/MariaDB or PostgreSQL version: Sqlite

  • Other relevant details: bitwarden-cli 1.20.0-1

  • OS: Archlinux

Steps to reproduce

bw send "test" --maxAccessCount 1

Expected behaviour

Create a send and output the url.

Actual behaviour

Throws an error:

         <!DOCTYPE html>
            <html lang="en">
            <head>
                <meta charset="utf-8">
                <title>422 Unprocessable Entity</title>
            </head>
            <body align="center">
                <div role="main" align="center">
                    <h1>422: Unprocessable Entity</h1>
                    <p>The request was well-formed but was unable to
                be followed due to semantic errors.</p>
                    <hr />
                </div>
                <div role="contentinfo" align="center">
                    <small>Rocket</small>
                </div>
            </body>
            </html>

Troubleshooting data

Originally created by @jcalonso on GitHub (Dec 31, 2021). ### Subject of the issue <!-- Describe your issue here. --> Bitwarden cli breaks when creating a send with `--maxAccessCount` or `-a` flags. ### Deployment environment <!-- ========================================================================================= Preferably, use the `Generate Support String` button on the admin page's Diagnostics tab. That will auto-generate most of the info requested in this section. ========================================================================================= --> <!-- The version number, obtained from the logs (at startup) or the admin diagnostics page --> <!-- This is NOT the version number shown on the web vault, which is versioned separately from vaultwarden --> <!-- Remember to check if your issue exists on the latest version first! --> * vaultwarden version: 1.23.1 <!-- How the server was installed: Docker image, OS package, built from source, etc. --> * Install method: Docker * Clients used: bitwarden-cli <!-- web vault, desktop, Android, iOS, etc. (if applicable) --> * Reverse proxy and version: traefik 2.5 <!-- if applicable --> * MySQL/MariaDB or PostgreSQL version: Sqlite <!-- if applicable --> * Other relevant details: bitwarden-cli 1.20.0-1 * OS: Archlinux ### Steps to reproduce <!-- Tell us how to reproduce this issue. What parameters did you set (differently from the defaults) and how did you start vaultwarden? --> ``` bw send "test" --maxAccessCount 1 ``` ### Expected behaviour <!-- Tell us what you expected to happen --> Create a send and output the url. ### Actual behaviour <!-- Tell us what actually happened --> Throws an error: ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>422 Unprocessable Entity</title> </head> <body align="center"> <div role="main" align="center"> <h1>422: Unprocessable Entity</h1> <p>The request was well-formed but was unable to be followed due to semantic errors.</p> <hr /> </div> <div role="contentinfo" align="center"> <small>Rocket</small> </div> </body> </html> ``` ### Troubleshooting data <!-- Share any log files, screenshots, or other relevant troubleshooting data -->
deekerman 2026-02-20 08:08:07 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@BlackDex commented on GitHub (Dec 31, 2021):

Confirmed.
The CLI uses a String instead of an Integer.
Patch is on the way.

@BlackDex commented on GitHub (Dec 31, 2021): Confirmed. The CLI uses a String instead of an Integer. Patch is on the way.
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#1184
No description provided.