I am trying to use Dropbox API on iOS but I got trapped by the error when I try to use loadMetadata
method.
process flow is below..
1.link (UserA)
[[DBSession sharedSession] linkFromController:self];
2.allow authorization on dropbox authorization view
3.unlink (UserA)
[[DBSession sharedSession] unlinkAll];
4.link (UserB)
[[DBSession sharedSession] linkFromController:self];
5.allow authorization on dropbox authorization view
6.loadMetadata
[[self restClient] loadMetadata:path];
But here I get the error:
Terminating app due to uncaught exception 'Unsupported Signature Method', reason:
'The signature method "(null)" is not currently support by MPOAuthConnection'
loadMetaData
did work correctly as UserA
but it did not work after changing user.
I doubt that the way to unlink
could be not enough .. but I do not know.
Please give me any advices in order to solve the problem. Any help will be appreciated.
Specifically, Greg K. says:
Make sure you clear all your DBRestClient objects when you unlink. If you try to use an old DBRestClient object it will cause this problem.
Clearing the old DBRestClient should be a no-brainer, but when it's late and you're following sample code that makes it a persistent class variable, it's easy to skip a brain or two.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With