- App: cordova application
- platform :android
- mfp server :8.0.0.00-20170124-152449
- mfp-plugin :8.0.2017013103
android cordova build :6.1.2
{"status":400,"statusText":"Bad Request","responseText":"{\"errorCode\":\"invalid_client\",\"errorMsg\":\"Incorrect JWT format\"}","errorMsg":"Incorrect JWT format","errorCode":"invalid_client"}
Asked
Active
Viewed 457 times
0
Linda Lawton - DaImTo
- 106,405
- 32
- 180
- 449
Ahmed Raouf
- 3
- 1
-
Uninstall the app and re-install, it should work fine. – S.A.Norton Stanley Feb 27 '17 at 10:55
-
Did, but unfortunately still not working. – Ahmed Raouf Feb 27 '17 at 15:17
-
At what point exactly, do you get this error? You mention successful login.Do you see the error during obtainAccessToken() ? If you were to try this sample :https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/quick-start/cordova/ do you see the same issue? – Vivin K Feb 28 '17 at 05:37
-
Is this intermittent or reproducible at will? – Vivin K Feb 28 '17 at 05:42
-
yes, i have tried the sample in this link with same error on Android when calling WLAuthorizationManager.obtainAccessToken() , however it works with iOS – Ahmed Raouf Feb 28 '17 at 08:04
-
@VivinK same error with push plugin: com.ibm.mobilefirstplatform.clientsdk.android.push.api.MFPPushException: Response: Status=400, Text: {\"errorCode\":\"invalid_client\",\"errorMsg\":\"Incorrect JWT format\"}, Error Message: Incorrect JWT format" – Ahmed Raouf Mar 02 '17 at 13:15
-
On the same device ?Or is this the case across Android devices? – Vivin K Mar 02 '17 at 14:07
-
across android devices – Ahmed Raouf Mar 03 '17 at 21:27
1 Answers
0
The most common cause of the issue is failure in time synchronization between client and server. Verify if the server time is offset from the client. Specifically if the server has a time in the future.Client has to be synchronized with server time or should be ahead of the server.
Vivin K
- 2,681
- 1
- 11
- 14
-
i am getting the same issue.. Is this a reason for the same ? if server is in UAE and we are testing in india. – Gaurab Kumar Apr 21 '17 at 13:46
-
-
Hello @vivin-k, I'm facing with the this problem on IBM Cloud (formerly Bluemix), I already checked client and server clock and seems was synchronized. What else should I take a look? – Bernardo Baumblatt Feb 07 '18 at 12:35
-
@BernardoBaumblatt, can you please tell what happens if you keep the client time slightly ahead? May be 5 minutes ahead of the server. – Vivin K Feb 07 '18 at 19:09
-
@VivinK, sorry the delay on this replay, after upgrade my MFP server (recreate button), the authentication works. – Bernardo Baumblatt Mar 12 '18 at 18:39