-
-
Notifications
You must be signed in to change notification settings - Fork 849
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
std.json.JSONException@std/json.d(508): Key not found: expirationDateTime #174
Comments
It appears that this has to do with the response on re-connecting to a session to re-upload. Will investigate a resolve today |
@fgauvrit
If you can let me know that would be greatly appreciated. |
@fgauvrit |
I am getting the same exception and I have tested the PR with no luck. I still get the same exception. Can I help you debug the problem? |
I have checking the code and I think the problem is in the file .config/resume_upload. In this file I have:
so then the error happens when trying to restore the session and look for the 'expirationDateTime' attribute in the Json. Obviously there is no such parameter there. Hope this helps to track the bug. |
@abraunegg |
@pglez82 |
as a workaround solution I have renamed the file .config/onedrive/resume_upload to .config/onedrive/resume_upload.bak and then I am able to continue the upload just fine |
@pglez82 To reproduce, when uploading a large file, cancel the upload then edit the 'resume_upload' to have contents similar to the following:
On restarting the application, the resume_file will be correctly validated. Updated output when using the updated PR:
|
…) (#176) * Handle an invalid response on session resume when a 4xx / 5xx response is generated from the OneDrive service
PR #176 merged |
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. |
Bug Report Details
Since the last onedrive client update I have the following error at the start : "std.json.JSONException@std/json.d(508): Key not found: expirationDateTime" and it makes a loop.
Application and Operating System Details:
To Reproduce
With Systemd implementation, I am using the following service file :
[Unit]
Description=OneDrive Free Client
Documentation=https://github.com/abraunegg/onedrive
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/usr/local/bin/onedrive --monitor --local-first --upload-only --skip-symlinks --verbose
Restart=on-failure
RestartSec=3
[Install]
WantedBy=default.target
Complete Verbose Log Output
With onedrive --synchronize --local-first --upload-only --skip-symlinks --verbose, I get the same issue. Please find here the attached log :
fgauvrit.onedrive.log.zip
Application Log Output:
The text was updated successfully, but these errors were encountered: