Failed to fetch (MacOS desktop app)

I get the “Failed to Fetch” error when I try to login in the Bitwarden Desktop App. My environment is:
Mac OS Big Sur 11.2.3 (M1)
BitWarden App 1.23.1 (installed from App Store)
2-step verification TOTP activated.
Web page web vault login is OK. Safari extension works fine.
I used to install Bitwarden by directly download from BW site and install but the Safari extension no longer worked in this way. So I install from App Store. Everything is OK except the desktop app. In the BitWarden Desktop development view, it says “net::ERR_CERT_INVALID”

Any clue to fix it? Still like to use desktop app to organise folders.

Interesting as i have the same situation after upgrading to BigSur on just one of my MACs, 2-step is not in use.
I have 3 Intel MACs in total - all running BigSur, all the same Bitwarden Desktop App build all the same trusted Certificates installed and in all 3 the Web Extension and Browser Vault Access works fine. Just one MAC failes to fetch only (!) in the Desktop App shows “net::ERR_CERT_INVALID” - same as cybermirror. What can i do to troubleshoot or fix the issue?

I finally fixed my issue after removing the App, removing all related certificates and removing everything from ~/Library/Containers/com.bitwarden.desktop/Data/Library/Application Support/Bitwarden.
Then i reinstalled the certificates, trusted them, installed the App from the Appstore and it worked like a charme. I assume removing the App only doesn´t clean up the path mentioned above completly…

Can you tell me how to “removing all related certiifcates”, and how to “reinstall the certificates, trusted them” ? Please help as I don’t know how to deal with cetificates stuff.

1 Like

+1, @dieoma, I would love some guidance on how to remove the certificates as well. I looked in the Keychain app but did not see any certificates under the search query “Bitwarden” anywhere.

I have tried without removing certificates and just removing the (1) app and (2) “~/Library/Containers/com.bitwarden.desktop/Data/Library/Application Support/Bitwarden” but have not removed the “certificates” because I do not know how to and it still does not work.

The certificates are not necessarily behind the name Bitwarden unless your Server hosting the Container it is call Bitwarden. Check a sample screenshot here how they might look like

How the certificates get created and used depends on your setup. With nginx or without, with docker or wirhout,… I pretty much followed the instructions found here. Even if you have a different NAS than synology you should be able to follow as the docket runtime works the same was finally…

Hi there,

i have the same problem for one of our team mates:

  • self hosting
  • access via browser is working
  • access via browser extension is working as well
  • when he tries to connect with the app, it says “failed to fetch”

I tried your solution, but the first problem appears after removing the app:
I neither find the path: ~/Library/Containers/com.bitwarden.desktop/Data/Library/Application Support/Bitwarden nor any other folders or files named Bitwarden on his device (after removing the app).
After reinstalling the App the error message (“failed to fetch”) appears again.

I feel kind of helpless because I installed Bitwarden for 9 people on 2 devices. At 8 of 9 team members it is working. I implemented it on every device the same way. Is there something I don’t see / which I can try?

Best Regards
Hauke

1 Like

Old post, I know, but, thanks for the instructions. Worked perfectly. Instead of just “deleting” the certificates, I exported them. Then deleted and reimported the recently exported/deleted certs. The certs were renewed 2 days prior, so seemed ridiculous to pull them back down from the server. For anyone still struggling to find the Library files, go to ~/Library/Containers, then perform a search for “bitwarden” and make sure you select to only search the Containers folder. That made finding them very easy. Delete the files and empty your trash. Then you can reinstall. Didn’t even have to restart my machine. Cheers!

Seems I’m experiencing the same problem while setting up my new Mac mini M4. My setting is as follows:

  • macOS Sequoia 15.2 on old and new Mac.
  • iOS 18.2.
  • Self-hosted Vaultwarden server v. 1.32.7 running in a Docker Container on a Raspberry Pi 3 with fully updated Debian Buster.
  • Server host is accessible behind a Traefik reverse proxy v. 2.11.16 that runs in another Docker Container and automatically creates a Let’s Encrypt certificate for the Vaultwarden server host.
  • I am able to access and to log in to my Vaultwarden’s user vault website and Vaultwarden’s admin website without problems. Safari e.g. reports created Let’s Encrypt certificate to be valid.
  • I am able to access and to log in to my Vaultwarden’s user vault using current Bitwarden iOS app v. 2024.12.0 and current Bitwarden Desktop app v. 2024.12.1 on my OLD Mac.
  • For iOS and macOS apps I used “self hosted” and only entered my Vaultwarden server URL.

Alas: I’m not able to log in to my vault using the Bitwarden Desktop app on my NEW Mac. When I try to do so by using username & master password and hitting the “Log in with master password” button

  • the app only displays error “failed to fetch” and
  • according to Vaultwarden’s logs the server does not receive any requests.

This problem occurs no matter if I’m using the Bitwarden Desktop app from the App Store or the one downloaded from Bitwarden website.

And now comes the strange thing: while trying to debug I found this documentation: Password Manager FAQs | Bitwarden Help Center

According to this hint I launched the app via /Applications/Bitwarden.app/Contents/MacOS/Bitwarden in Terminal.

And when I launch the app like this logging in works.

So I guess something weird is going on here with the Desktop app and any help to fix this would be greatly appreciated.

Welcome, @mario.rasch to the community!

Vaultwarden is not Bitwarden product. The Vaultwarden staff requests that issues with thier product be directed to their support channels, not here.

1 Like