Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VIMNetworking authenticate fail #203

Open
zake1989 opened this issue Jul 20, 2016 · 4 comments
Open

VIMNetworking authenticate fail #203

zake1989 opened this issue Jul 20, 2016 · 4 comments

Comments

@zake1989
Copy link

Issue Summary

during the authenticate process crash at ->
*** Assertion failure in -[VIMSession authenticationCompleteWithAccount:error:key:completionBlock:]

Reproduction Steps

Follow the authentication process, when jump back from safari app crash. It seems the user account cannot save in keychain.

Expected Behaviour

User info should be able to store in keychain properly.

Actual Behaviour

This process cannot pass the assert in the method method above.
NSAssert(success, @"Unable to save account for key: %@", key);

The thing I couldn't understand is it worked a week ago, however I can't get it work any more.

@eyeq2009
Copy link

eyeq2009 commented Oct 7, 2016

Received the same error during authentication process.
'Unable to save account for key: ClientCredentialsAccountKey'

@skywalkerlw
Copy link

i have the same issue here and crash my app

2016-11-25 09:14:24.876 VimeoAPIVerify[14409:2638848] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unable to save account for key: ClientCredentialsAccountKey'
*** First throw call stack:
(
0 CoreFoundation 0x000000010d6f634b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010d15721e objc_exception_throw + 48
2 CoreFoundation 0x000000010d6fa442 +[NSException raise:format:arguments:] + 98
3 Foundation 0x000000010c980e4d -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
4 VimeoAPIVerify 0x000000010bce3762 -[VIMSession authenticationCompleteWithAccount:error:key:completionBlock:] + 1762
5 VimeoAPIVerify 0x000000010bce3df8 __53-[VIMSession authenticateWithClientCredentialsGrant:]_block_invoke + 136
6 VimeoAPIVerify 0x000000010bcc1e92 __68-[VIMAuthenticator authenticateWithPath:parameters:completionBlock:]_block_invoke + 898
7 VimeoAPIVerify 0x000000010bcdab76 __72-[VIMRequestOperationManager requestDescriptor:handler:completionBlock:]_block_invoke_3.166 + 262
8 VimeoAPIVerify 0x000000010bce16c5 +[VIMServerResponseMapper responseFromJSON:operation:completionBlock:] + 4693
9 VimeoAPIVerify 0x000000010bcdaa3a __72-[VIMRequestOperationManager requestDescriptor:handler:completionBlock:]_block_invoke_2.165 + 218
10 libdispatch.dylib 0x0000000111674980 _dispatch_call_block_and_release + 12
11 libdispatch.dylib 0x000000011169e0cd _dispatch_client_callout + 8
12 libdispatch.dylib 0x000000011167be6b _dispatch_queue_serial_drain + 236
13 libdispatch.dylib 0x000000011167cb9f _dispatch_queue_invoke + 1073
14 libdispatch.dylib 0x000000011167d07f _dispatch_queue_override_invoke + 683
15 libdispatch.dylib 0x000000011167f3b7 _dispatch_root_queue_drain + 720
16 libdispatch.dylib 0x000000011167f08b _dispatch_worker_thread3 + 123
17 libsystem_pthread.dylib 0x0000000111a4d736 _pthread_wqthread + 1299
18 libsystem_pthread.dylib 0x0000000111a4d211 start_wqthread + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException

@skywalkerlw
Copy link

I found this problem is on simulator(I'm using iOS10.1), and it works fine on device(iPhone6 plus, with 10.1)

@amajeedmuazu
Copy link

amajeedmuazu commented Dec 1, 2016

# Found a temporary solution -
create an access token on your Vimeo App used for Api calls (developer.vimeo.com) if you don't have one already

use the method in this stackoverflow.com question (that manually sets the access token) -
http://stackoverflow.com/questions/37307770/using-vimnetworking-to-call-vimeo-apis-but-the-files-of-the-vimvideo-objects-a

then make sure you enable Keychain Sharing in your Xcode's Project settings/configuration under the capabilities tab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants