I have the same problem. I’ve been trying to upload an inital backup of about 400GB to Onedrive Business for days. After a few hours it always fails with 400 errors.
If it helps here is the stacktrace of the last crash:
2021-05-08 07:01:08.234 ERROR UPLOAD_CHUNK Failed to upload the chunk 6c34cc53a2511c9fc5979dcd915995c34f05a02694525e1265adc45ade83344d: 404 Item not found
goroutine 146 [running]:
runtime/debug.Stack(0xc0000740c0, 0x0, 0xc00044da00)
/usr/local/go/src/runtime/debug/stack.go:24 +0x9d
runtime/debug.PrintStack()
/usr/local/go/src/runtime/debug/stack.go:16 +0x22
github.com/gilbertchen/duplicacy/src.CatchLogException()
/Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/src/duplicacy_log.go:227 +0x88
panic(0xf49d60, 0xc00b826330)
/usr/local/go/src/runtime/panic.go:522 +0x1b5
github.com/gilbertchen/duplicacy/src.logf(0x2, 0x1026158, 0xc, 0x103dda7, 0x21, 0xc00044dea0, 0x2, 0x2)
/Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/src/duplicacy_log.go:180 +0x8f9
github.com/gilbertchen/duplicacy/src.LOG_ERROR(...)
/Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/src/duplicacy_log.go:107
github.com/gilbertchen/duplicacy/src.(*ChunkUploader).Upload(0xc0004fb900, 0x1, 0xc00de0ccc0, 0x1847f, 0x1)
/Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/src/duplicacy_chunkuploader.go:140 +0x32d
github.com/gilbertchen/duplicacy/src.(*ChunkUploader).Start.func1(0xc0004fb900, 0x1)
/Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/src/duplicacy_chunkuploader.go:60 +0x83
created by github.com/gilbertchen/duplicacy/src.(*ChunkUploader).Start
/Users/chgang/zincbox/go/src/github.com/gilbertchen/duplicacy/src/duplicacy_chunkuploader.go:55 +0x48