mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Error 404 when trying to export organization vault using latest version of the clients (2022.9.x) #1361
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 @TimoVerbrugghe on GitHub (Sep 23, 2022).
Subject of the issue
When trying to export an organization vault using the bitwarden cli (command
bw export --organizationid <ORGID> --session <SESSION_KEY> --format json), I get a 404 error that the resource can't be found.Other cli commands with the same organization id (like f.e.
bw get organization <orgid>) do work and give the expected response.I first filed an issue with bitwarden itself, but they referred me to vaultwarden. https://github.com/bitwarden/clients/issues/3595
Deployment environment
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden: SIGNUPS_ALLOWED, INVITATIONS_ALLOWED, ADMIN_TOKEN
Steps to reproduce
Using the bw cli (in my case installed using npm), signed into my selfhosted bitwarden server
bw config server <serverurl> bw login --apikey bw sync bw unlockList my organizations in order to get organization IDs
bw list organizations --session <BW_SESSION_KEY>Try to export one of my organizations' vault as a non-encrypted json
bw export --format json --organizationid <orgid> --session <BW_SESSION_KEY> --output /testExpected behaviour
A json formatted file with the items in my organization vault
Actual behaviour
Getting the following error code:
{"response":{"error":{"code":404,"reason":"Not Found","description":"The requested resource could not be found."}},"captchaRequired":false,"statusCode":404}Troubleshooting data
Additional Context
I've triple checked that the org id is correct. Additionally, other commands such as
bw get organization
bw list org-collections --organizationid
do work with the same org id that I'm using on the export command.
Exporting using other formats (csv or encrypted json) come with the same result.
Exporting the organization vault using the web client works as expected.
@BlackDex commented on GitHub (Sep 23, 2022):
Looks like there are some new endpoints here which are not used by the web-vault indeed.
@BlackDex commented on GitHub (Sep 24, 2022):
Looks like this is used by the web-vault since a newer version.