We got this error message when using WL.Client.connect API
The server error logs:
[ERROR ] FWLSE0020E: Ajax request exception: Cannot find application environment, application=test, version=1.0, environment=iphone [project WLTestConnect]
[ERROR ] FWLSE0117E: Error code: 1, error description: INTERNAL_ERROR, error message: FWLSE0069E: An internal error occurred during gadget request [project WLTestConnect]Cannot find application environment, application=test, version=1.0, environment=iphone, User Identity {wl_antiXSRFRealm=null, wl_authenticityRealm=null, wl_directUpdateRealm=null, wl_remoteDisableRealm=null, SampleAppRealm=null, wl_deviceNoProvisioningRealm=null, SubscribeServlet=null, wl_anonymousUserRealm=null, wl_deviceAutoProvisioningRealm=null}. [project WLTestConnect] com.worklight.common.log.filters.ErrorFilter
[ERROR ] FWLSE0335E: Authorization failed: ClientId f5ac9a8cda443cfca33d1e7f926a71f90f8c67a1 was not found on the server. [project WLTestConnect]
Here's the scenario:
- Create Hello MobileFirst project in workspace A.
- Deploy the project to local MobileFirst Server in workspace A.
- Deploy Hello MobileFirst App to iphone and then use WL.Client.connect API. We got connect success callback.
- Export this MobileFirst project which named WLTestConnect.
- The iPhone device(iOS 10.2.1) still running.
- Switching to the new Workspace B.
- Import WLTestConnect project to Workspace B.
- Deploy WLTestConnect project to local MobileFirst server.
- Use WL.Client.connect in iPhone device and we got the access denied error.
MobileFirst version : 7.1.0.00-20151214-1857 & 7.1.0.00-20170608-1107
Is there a way to avoid access denied?