I am getting an error code -1017 "cannot parse request" from my app when it tries to download a file from Dropbox. This code has not changed for a while and has worked without trouble. I use the same code in my web app, again, without any problems. I am using the REST API in each case. Nothing fancy, pretty much exactly the same as the example in your API documents.
This happens in the XCode simulator (for iOS 15.4 or 15.0) running on an M1 Mac running Mac OS 12.3.1, but it also happens when I install and run my app on my iPhone running iOS 15.4.1 ... So first, what exactly does this error code mean? What exactly is it that cannot be parsed? Is there a problem with the http request I'm sending? I also wonder whether spaces in the file path I'm requesting could be a problem. Should those be escaped to %20 in the request?
The error is somewhat intermittent. It seems to mostly happen when opening one particular file, but it does not always happen with that file. And if I open another file successfully, then I can open the first one with no error. And I can open that same file from my web app (using the same code) without ever getting an error.
I am installing a version of the simulator running iOS 14.5 and I will experiment with that to see if the error happens with iOS 14.5. I also wonder if this is an iOS bug in their http request functions. But if that were the case, a lot of people would be running into this. So that seems very unlikely.
When I run the version of my app that is currently in the App Store, it does not have any errors opening files from Dropbox. But that version of the app was built almost a year ago.
Any help would be much appreciated!
Daniel Ethier