I recently ran into the issue of the long lived tokens no longer working, so I needed to upgrade to the latest API and change the access. I am now running into an exception uploading content.
My old upload code was this (and nested other uploads if the first was successful), but this API was no longer present.
DBFILESWriteMode* mode = [[DBFILESWriteMode alloc]initWithOverwrite];
[[self.restClient.filesRoutes uploadData:@"/ServiceReport.sqlite"
mode:mode
autorename: NULL
clientModified:NULL
mute:NULL
inputData:sqllite]setResponseBlock:^(DBFILESFileMetadata * _Nullable result , DBFILESUploadError * _Nullable routeError, DBRequestError * _Nullable error) {
//repeat for each file to upload......
}];
So I replaced with what seemed like the correct replacement:
[[self.restClient.filesRoutes uploadData: @"/ServiceReport.sqlite"inputData:sqllite] setResponseBlock:^(DBFILESFileMetadata * _Nullable result , DBFILESUploadError * _Nullable routeError, DBRequestError * _Nullable error) {
//repeat for each file to upload
}];
But when I try this, I am getting the following error...

I am not really sure what to try next... it seems my download to restore is working just fine, it's the upload that is failing.
Thank you for any pointers.