您的位置:首页 > 移动开发 > IOS开发

iOS Dropbox API “not currently support by MPOAuthConnection” occur after changing user

2013-11-07 20:05 495 查看
3down
votefavorite

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.

objective-c ios oauth dropbox-api
share|edit
edited Dec
21 '12 at 8:51




tkanzakic
3,777101424

asked Dec 21 '12 at 6:40





zono
57551025

 
1 
I've got it solved thanks to this > forums.dropbox.com/topic.php?id=94511#post-517526 –  zono Jan
5 at 21:13


1 Answer

activeoldestvotes

up
vote0down
vote
Migrating the answer above to a proper one.... As @yusaku posted in a comment on his question, this link has the answer: https://forums.dropbox.com/topic.php?id=94511#post-517526

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.

3down
votefavorite

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.

objective-c ios oauth dropbox-api
share|edit
edited Dec
21 '12 at 8:51




tkanzakic
3,777101424

asked Dec 21 '12 at 6:40





zono
57551025

 
1 
I've got it solved thanks to this > forums.dropbox.com/topic.php?id=94511#post-517526 –  zono Jan
5 at 21:13


1 Answer

activeoldestvotes

up
vote0down
vote
Migrating the answer above to a proper one.... As @yusaku posted in a comment on his question, this link has the answer: https://forums.dropbox.com/topic.php?id=94511#post-517526

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.

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐