[Bug] OneDrive upload failed
jinoo2005609 opened this issue · 3 comments
Describe the bug
I'm getting an error uploading to OneDrive.
To Reproduce
To reproduce this error, link account to OneDrive and do /drivebackup backup command.
Screenshots / Videos
Server and Plugin Versions
Paper 1.20.4-497, DriveBackupV2 1.7.0, OpenJDK 21
Logs
[14:53:25 WARN]: ratismal.drivebackup.DriveBackup.lib.JSONException: JSONObject[
"@odata.count"] not found.
[14:53:25 WARN]: at DriveBackupV2-1.7.0.jar//ratismal.drivebackup.DriveBa
ckup.lib.JSONObject.get(JSONObject.java:596)
[14:53:25 WARN]: at DriveBackupV2-1.7.0.jar//ratismal.drivebackup.DriveBa
ckup.lib.JSONObject.getInt(JSONObject.java:768)
[14:53:25 WARN]: at DriveBackupV2-1.7.0.jar//ratismal.drivebackup.uploade
rs.onedrive.OneDriveUploader.getChildren(OneDriveUploader.java:384)
[14:53:25 WARN]: at DriveBackupV2-1.7.0.jar//ratismal.drivebackup.uploaders.onedrive.OneDriveUploader.getFolder(OneDriveUploader.java:343)
[14:53:25 WARN]: at DriveBackupV2-1.7.0.jar//ratismal.drivebackup.uploaders.onedrive.OneDriveUploader.createFolder(OneDriveUploader.java:244)
[14:53:25 WARN]: at DriveBackupV2-1.7.0.jar//ratismal.drivebackup.uploaders.onedrive.OneDriveUploader.createPath(OneDriveUploader.java:228)
[14:53:25 WARN]: at DriveBackupV2-1.7.0.jar//ratismal.drivebackup.uploaders.onedrive.OneDriveUploader.uploadFile(OneDriveUploader.java:134)
[14:53:25 WARN]: at DriveBackupV2-1.7.0.jar//ratismal.drivebackup.UploadThread.uploadFile(UploadThread.java:412)
[14:53:25 WARN]: at DriveBackupV2-1.7.0.jar//ratismal.drivebackup.UploadThread.uploadBackupFiles(UploadThread.java:381)
[14:53:25 WARN]: at DriveBackupV2-1.7.0.jar//ratismal.drivebackup.UploadThread.run(UploadThread.java:272)
[14:53:25 WARN]: at java.base/java.lang.Thread.run(Thread.java:1583)
Config
DriveBackupV2 - by Max Maeder (MaxTheGinus)
DOCUMENTATION HAS MOVED
Now available online at: https://github.com/MaxMaeder/DriveBackupV2/wiki
version: 2
delay: 60
backup-thread-priority: 1
keep-count: 20
local-keep-count: 5
zip-compression: 1
backups-require-players: true
disable-saving-during-backups: true
scheduled-backups: true
backup-schedule-list:
- days:
- everyday
time: 00:00
- everyday
backup-list:
- glob: world*
format: Backup-%NAME-%FORMAT.zip
create: true - path: plugins
format: Backup-plugins-%FORMAT.zip
create: true
local-save-directory: backups
remote-save-directory: backups
googledrive:
enabled: false
shared-drive-id: ''
onedrive:
enabled: true
dropbox:
enabled: false
webdav:
enabled: false
hostname: http://example.com/directory
username: Username
password: Password
nextcloud:
enabled: false
hostname: https://example.com/remote.php/dav/files/user/
username: Username
password: Password
chunk-size: 20000000
s3:
enabled: false
endpoint: https://s3.us-west-2.amazonaws.com
access-key: AKIAxxxxxxxxxxxxxxxx
secret-key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
bucket: bucket
ftp:
enabled: false
hostname: ftp.example.com
port: 21
sftp: false
ftps: false
username: Username
password: Password
messages:
send-in-chat: true
prefix: '&6[&4서버 백업&6] '
default-color: '&3'
advanced:
metrics: true
update-check: true
suppress-errors: false
debug: false
date-language: en
date-timezone: +09:00
ftp-file-separator: /
Additional Information
No response
a fix has been implemented and will be available in the next release, if you need an immediate fix you can grab a dev build
Warning! These builds have not been fully tested and may be broken, or have unknown bugs. Should you use these builds, you'll be using them at your own risk.
You can download dev builds of DriveBackupV2 from our GitHub actions at https://github.com/MaxMaeder/DriveBackupV2/actions/workflows/maven.yml?query=branch%3Amaster
Alternate Link
https://nightly.link/MaxMaeder/DriveBackupV2/workflows/maven/master