You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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. bitwarden/clients#3595
Deployment environment
Your environment (Generated via diagnostics page)
Vaultwarden version: v1.25.2
Web-vault version: v2022.6.2
Running within Docker: true (Base: Debian)
Environment settings overridden: true
Uses a reverse proxy: true
IP Header check: true (X-Real-IP)
Internet access: true
Internet access via a proxy: false
DNS Check: true
Time Check: false
Domain Configuration Check: true
HTTPS Check: true
Database type: SQLite
Database version: 3.35.4
Clients used:
Reverse proxy and version:
Other relevant information:
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden: SIGNUPS_ALLOWED, INVITATIONS_ALLOWED, ADMIN_TOKEN
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 unlock
List 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 /test
Expected 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.
The text was updated successfully, but these errors were encountered:
BlackDex
changed the title
Error 404 when trying to export organization vault using bitwarden cli
Error 404 when trying to export organization vault using latest version of the clients (2022.9.x)
Sep 23, 2022
Since v2022.9.x it seems they changed the export endpoint and way of working.
This PR fixes this by adding the export endpoint.
Also, it looks like the clients can't handle uppercase first JSON key's.
Because of this there now is a function which converts all the key's to lowercase first.
I have an issue reported at Bitwarden if this is expected behavior: bitwarden/clients#3606Fixes#2760Fixes#2764
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. bitwarden/clients#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 unlock
List 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 /test
Expected 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.
The text was updated successfully, but these errors were encountered: