I Develop a procedure to upload data in a collection in JAVA.
I make a procedure to insert/update about 100 records in the Storage Service.
I Use storageService and when I make an Upload of data I receive often this message:
com.shephertz.app42.paas.sdk.java.App42SecurityException: {"app42Fault":{"httpErrorCode":401,"appErrorCode":1401,"message":"UnAuthorized Access","details":"Client is not authorized"}}
at com.shephertz.app42.paas.sdk.java.connection.RESTConnectorAsync.handleException(RESTConnectorAsync.java:311)
at com.shephertz.app42.paas.sdk.java.connection.RESTConnectorAsync.executePost(RESTConnectorAsync.java:135)
at com.shephertz.app42.paas.sdk.java.storage.StorageService.insertJSONDocument(StorageService.java:196)
I use this syntax:
storageService = App42API.buildStorageService();
storage = storageService.insertJSONDocument(ConfigValues.APP42_DBNAME,ConfigValues.APP42_TEAM_COLLECTION, json);
I receive the error always in the same records insert.
Can you help me ?
Best regards.