Exception: message":"UnAuthorized Access","details":"Client is not authorized"

0 votes

Hi, I'm using App42_sdk.3.9.1 jar.

When I use user service, it works good!

but when I use storage service, it make exception!

error code below:

07-02 21:47:09.678 3406-3644/nahunhee.circle I/System.out:  ########## Setting Session ##########
07-02 21:47:09.678 3406-3644/nahunhee.circle I/System.out: sortedparams: apiKey97830c4223ea683b7a3051691c25bb0b06c1a539187eea47c37d8856c882b492collectionNamecirclepidbNameCIRCLEPIjsonQuery[{"value":"7ZmN6ri464+Z7LSI65Ox7ZWZ6rWQLzE=","operator":"$eq","key":"collectionName"}]sessionId5676159a-1e32-4ae7-b79d-8768ca817e95timeStamp2016-07-02T12:47:09.685Zversion1.0
07-02 21:47:09.688 3406-3644/nahunhee.circle I/System.out:  QueryString is ?
07-02 21:47:09.688 3406-3644/nahunhee.circle I/System.out:  Requested URL is https://api.shephertz.com/cloud/1.0/storage/findDocsByQuery/dbName/CIRCLEPI/collectionName/circlepi?
07-02 21:47:09.688 3406-3644/nahunhee.circle I/System.out: Policy.NETWORK_FIRST
07-02 21:47:09.688 3406-3644/nahunhee.circle I/System.out:  Setting Header value : collectionName : circlepi
07-02 21:47:09.688 3406-3644/nahunhee.circle I/System.out:  Setting Header value : deviceId : 674e06977dae1df
07-02 21:47:09.688 3406-3644/nahunhee.circle I/System.out:  Setting Header value : jsonQuery : [{"value":"7ZmN6ri464+Z7LSI65Ox7ZWZ6rWQLzE=","operator":"$eq","key":"collectionName"}]
07-02 21:47:09.688 3406-3644/nahunhee.circle I/System.out:  Setting Header value : dbName : CIRCLEPI
07-02 21:47:09.688 3406-3644/nahunhee.circle I/System.out:  Setting Header value : signature : yAbbtwC3fNUdke7JozQjgU5pHus%3D
07-02 21:47:09.688 3406-3644/nahunhee.circle I/System.out:  Setting Header value : SDKName : Android
07-02 21:47:09.688 3406-3644/nahunhee.circle I/System.out:  Setting Header value : version : 1.0
07-02 21:47:09.688 3406-3644/nahunhee.circle I/System.out:  Setting Header value : sessionId : 5676159a-1e32-4ae7-b79d-8768ca817e95
07-02 21:47:09.688 3406-3644/nahunhee.circle I/System.out:  Setting Header value : apiKey : 97830c4223ea683b7a3051691c25bb0b06c1a539187eea47c37d8856c882b492
07-02 21:47:09.688 3406-3644/nahunhee.circle I/System.out:  Setting Header value : loggedInUser : 3333
07-02 21:47:09.688 3406-3644/nahunhee.circle I/System.out:  Setting Header value : timeStamp : 2016-07-02T12:47:09.685Z
07-02 21:47:09.758 3406-3406/nahunhee.circle I/------: spinner1 position: 0
07-02 21:47:10.698 3406-3644/nahunhee.circle W/DefaultRequestDirector: Authentication error: Unable to respond to any of these challenges: {}
07-02 21:47:10.708 3406-3644/nahunhee.circle I/System.out:  Exception is {"app42Fault":{"httpErrorCode":401,"appErrorCode":1401,"message":"UnAuthorized Access","details":"Client is not authorized"}}
07-02 21:47:10.708 3406-3644/nahunhee.circle I/System.out:  Exception :com.shephertz.app42.paas.sdk.android.App42SecurityException: {"app42Fault":{"httpErrorCode":401,"appErrorCode":1401,"message":"UnAuthorized Access","details":"Client is not authorized"}}
07-02 21:47:10.708 3406-3644/nahunhee.circle I/-----: sendquerey error
 
 
I set replay attack disabled and have correct api key!
 
And the curious thing is, when I use App42_sdk.3.7 version makes no error!
but when I use App42_sdk.3.9.1 version it makes above unauthorized access error!
 

 

asked Jul 2, 2016 in Android by HunHee Na (21 points)

1 Answer

0 votes
Hello HunHee,

 

Thanks for sharing the details with us.  I have forwarded your request to concern team and they are looking on it. Soon I get the response from the team, I will get back to you.

 

Thanks for your patience.

 

Regards,

Himanshu Sharma
answered Jul 2, 2016 by hs00105 (2,005 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...