# 400 - bad\_request: invalid sha1

**URL:** https://forum.duplicati.com/t/400-bad-request-invalid-sha1/907
**Category:** Support
**Created:** [October 5, 2017, 2:31am UTC](https://forum.duplicati.com/t/400-bad-request-invalid-sha1/907 "2017-10-05T02:31:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ormanya](https://forum.duplicati.com/user_avatar/forum.duplicati.com/ormanya/32/115_2.png) [@ormanya](https://forum.duplicati.com/u/ormanya)
#### Post date: [October 5, 2017, 2:31am UTC](https://forum.duplicati.com/t/400-bad-request-invalid-sha1/907/1 "2017-10-05T02:31:03Z")

</div>

Starting with upgrade to the most recent version, I have been getting this error every time I run my backup to Backblaze B2. I am using version 2.0.2.9 on MacOS High Sierra. My backup of the same data to a Samba share is still working fine.

```
Failed: 400 - bad_request: invalid sha1: 8116318EB12EE2C849998DB54671A67C97A8D481000000000000000000000000
Details: System.Exception: 400 - bad_request: invalid sha1: 8116318EB12EE2C849998DB54671A67C97A8D481000000000000000000000000
  at Duplicati.Library.Main.Operation.BackupHandler.HandleFilesystemEntry (Duplicati.Library.Snapshots.ISnapshotService snapshot, Duplicati.Library.Main.BackendManager backend, System.String path, System.IO.FileAttributes attributes) [0x0000e] in <4b690539f7f14b1e8efc3ce9f9bbe28b>:0 
  at Duplicati.Library.Main.Operation.BackupHandler.RunMainOperation (Duplicati.Library.Snapshots.ISnapshotService snapshot, Duplicati.Library.Main.BackendManager backend) [0x0018a] in <4b690539f7f14b1e8efc3ce9f9bbe28b>:0 
  at Duplicati.Library.Main.Operation.BackupHandler.Run (System.String[] sources, Duplicati.Library.Utility.IFilter filter) [0x008a5] in <4b690539f7f14b1e8efc3ce9f9bbe28b>:0 
  at Duplicati.Library.Main.Controller+<>c __DisplayClass16_0.<Backup>b__ 0 (Duplicati.Library.Main.BackupResults result) [0x004fc] in <4b690539f7f14b1e8efc3ce9f9bbe28b>:0 
  at Duplicati.Library.Main.Controller.RunAction[T] (T result, System.String[]& paths, Duplicati.Library.Utility.IFilter& filter, System.Action`1[T] method) [0x00072] in <4b690539f7f14b1e8efc3ce9f9bbe28b>:0
```

---

<div class="post-metadata">

### Author: ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)
#### Post date: [October 5, 2017, 7:49pm UTC](https://forum.duplicati.com/t/400-bad-request-invalid-sha1/907/2 "2017-10-05T19:49:46Z")

</div>

I found the problem, it is caused by the change to use the Apple Common Crypto hashing in Duplicati.

I will fix it for the next build, but if you want a fix, either go back to 2.0.2.8 or set the environment variable `FH_DISABLE_APPLECC=1` before starting Duplicati.

---

<div class="post-metadata">

### Author: ![JonMikelV](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@JonMikelV](https://forum.duplicati.com/u/JonMikelV)
#### Post date: [February 2, 2018, 9:26pm UTC](https://forum.duplicati.com/t/400-bad-request-invalid-sha1/907/3 "2018-02-02T21:26:09Z")

</div>

A post was split to a new topic: [“File names must not contain” error](https://forum.duplicati.com/t/file-names-must-not-contain-error/2334)
