Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

412 (Precondition Failed) #226

Closed
abraunegg opened this issue Nov 10, 2018 · 2 comments
Closed

412 (Precondition Failed) #226

abraunegg opened this issue Nov 10, 2018 · 2 comments
Assignees
Labels
Bug Something isn't working Fixed

Comments

@abraunegg
Copy link
Owner

Curl 7.62 somehow is causing a large file which is changed locally, to not be uploaded correctly:

Processing file.rar
The file last modified time has changed
The file content has changed
Uploading file file.rar ... 
onedrive.OneDriveException@src/onedrive.d(621): HTTP request returned status code 412 (Precondition Failed)
----------------
src/onedrive.d:29 void onedrive.OneDriveApi.checkHttpCode(ref const(std.json.JSONValue)) [0xe14a7879]
src/onedrive.d:422 std.json.JSONValue onedrive.OneDriveApi.post!(char).post(const(char)[], const(char)[]) [0xe14a7ad6]
src/onedrive.d:242 std.json.JSONValue onedrive.OneDriveApi.createUploadSession(const(char)[], const(char)[], const(char)[], const(char)[], std.json.JSONValue) [0xe14a631d]
src/upload.d:42 std.json.JSONValue upload.UploadSession.upload(immutable(char)[], const(char)[], const(char)[], const(char)[], const(char)[]) [0xe14b7d2f]
src/sync.d:1009 void sync.SyncEngine.uploadFileDifferences(itemdb.Item, immutable(char)[]) [0xe14b46ff]
src/sync.d:894 void sync.SyncEngine.uploadDifferences(itemdb.Item) [0xe14b3dc4]
src/sync.d:914 void sync.SyncEngine.uploadDirDifferences(itemdb.Item, immutable(char)[]) [0xe14b3f81]
src/sync.d:891 void sync.SyncEngine.uploadDifferences(itemdb.Item) [0xe14b3d91]
src/sync.d:848 void sync.SyncEngine.scanForDifferences(immutable(char)[]) [0xe14b3b79]
src/main.d:432 void main.performSync(sync.SyncEngine, immutable(char)[], bool, bool, bool) [0xe1496594]
src/main.d:312 _Dmain [0xe1495e80]
@abraunegg abraunegg self-assigned this Nov 10, 2018
@abraunegg abraunegg added Bug Something isn't working In Progress Currently being worked on Fixed and removed In Progress Currently being worked on labels Nov 10, 2018
@abraunegg
Copy link
Owner Author

PR #227 merged

@lock
Copy link

lock bot commented Jan 5, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Jan 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working Fixed
Projects
None yet
Development

No branches or pull requests

1 participant