This is an odd one. Random users of our backup tool started reporting the problem mentioned in the subject.
Problem occurs regardless using "Simple item upload" or "Resumable item upload". Both fail with a HTTP 404 Not Found error. The "Simple item upload" will fail after the PUT method has been completed, where the "Resumable item upload" will fail during the create session call.
A similar issue had been reported almost a year ago on Github, unfortunately with no replies:
https://github.com/OneDrive/onedrive-api-docs/issues/1785
"Simple item upload" example:
PUT /v1.0/drive/items/2209122A8A98D500!s02e8983189a84d2b8468420b02cb5f00:/Windows.gif:/content
Connection: keep-alive
Content-Length: 539124
Authorization: Bearer xxx
Host: api.onedrive.com
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/3.0 (compatible; Indy Library)
HTTP/1.1 404 Not Found
Content-Length: 204
Content-Type: application/json
P3P: CP="BUS CUR CONo FIN IVDo ONL OUR PHY SAMo TELo"
X-MSNSERVER: BN6PPF3CFBC8E95
Strict-Transport-Security: max-age=31536000; includeSubDomains
MS-CV: UiPZ/N2+B0eQhzovmxbcdw.0
X-QosStats: {"ApiId":0,"ResultType":2,"SourcePropertyId":0,"TargetPropertyId":42}
X-ThrowSite: 5433.1999
X-AsmVersion: UNKNOWN; 19.1592.113.2003
X-Cache: CONFIG_NOCACHE
X-MSEdge-Ref: Ref A: 07E3687D74374C888BC87FB8540EDD6D Ref B: BKK30EDGE0411 Ref C: 2025-01-30T06:13:52Z
Date: Thu, 30 Jan 2025 06:13:53 GMT
{"error":{"code":"itemNotFound","message":"Item does not exist","localizedMessage":"That item seems to be missing. Someone may have deleted or moved the item, or you may not have permission to view it."}}
Resumable upload session creation:
POST /v1.0/drive/items/2209122A8A98D500!s02e8983189a84d2b8468420b02cb5f00:/Windows.gif:/upload.createSession
Connection: keep-alive
Content-Type: application/json; charset=UTF-8
Content-Length: 145
Authorization: Bearer xxx
Host: api.onedrive.com
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/3.0 (compatible; Indy Library)
{"item":{"name":"Windows.gif","fileSystemInfo":{"lastModifiedDateTime":"2025-01-29T06:25:25.203Z","createdDateTime":"2025-01-28T06:25:25.203Z"}}}
HTTP/1.1 404 Not Found
Cache-Control: no-store
Content-Length: 204
Content-Type: application/json
Vary: Accept,Accept-Language,Authorization,Prefer
P3P: CP="BUS CUR CONo FIN IVDo ONL OUR PHY SAMo TELo"
X-MSNSERVER: BN6PPF8DA18C5F4
Strict-Transport-Security: max-age=31536000; includeSubDomains
MS-CV: xBNM315InE+2p8UJvETTzg.0
X-VroomVersion: v1.0
X-QosStats: {"ApiId":0,"ResultType":2,"SourcePropertyId":0,"TargetPropertyId":42}
X-ThrowSite: 3847.1964
X-AsmVersion: UNKNOWN; 19.1592.113.2003
X-Cache: CONFIG_NOCACHE
X-MSEdge-Ref: Ref A: 06C8707EDBBE494FBB278C5FE2C4FCAD Ref B: BKK30EDGE0321 Ref C: 2025-01-30T06:25:25Z
Date: Thu, 30 Jan 2025 06:25:25 GMT
Connection: keep-alive
{"error": {"code": "itemNotFound","message": "Item does not exist","localizedMessage": "That item seems to be missing. Someone may have deleted or moved the item, or you may not have permission to view it."}}
No request-id is being returned with these failed requests so I am not sure how they can be traced.
Also, the problem seems to occur on random accounts, for example I cannot reproduce this when using my own OneDrive Personal storage, but my colleague can when using hers.
In other cases where the file name is not starting with the word "Windows" there are no issues at all.