As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
at first glance all that looks correct. Can you try logging some of the additional information from the throwable error? That might help us figure out what's going on.
at com.kinvey.java.core.KinveyJsonResponseException.from(KinveyJsonResponseException.java:87)
at com.kinvey.java.auth.KinveyAuthRequest.executeUnparsed(KinveyAuthRequest.java:204)
at com.kinvey.java.auth.KinveyAuthRequest.execute(KinveyAuthRequest.java:208)
at com.kinvey.java.User$LoginRequest.execute(User.java:590)
at com.gl.kinvey.sample.SignUp.signup(SignUp.java:25)
at com.gl.kinvey.sample.SignUp.main(SignUp.java:16)
E
Edward
said
about 9 years ago
Hey,
Can you visit the User section of the console and check to see if that user already exists? I'm wondering if there is a bug in the java library where this specific error is not being handled properly, which is why you are seeing `unknown`
Note that you cannot create two users with the same username, so the second attempt will fail.
For the current console, check here for a user with username "abc": https://console.kinvey.com/addons/users
r
ritika
said
about 9 years ago
Hi,
The user with the name "abc" is not added in User section.
E
Edward
said
about 9 years ago
Hey,
Can you check out the troubleshooting guide and enable debug logging?
at com.kinvey.java.core.KinveyJsonResponseException.from(KinveyJsonResponseException.java:87)
at com.kinvey.java.auth.KinveyAuthRequest.executeUnparsed(KinveyAuthRequest.java:204)
at com.kinvey.java.auth.KinveyAuthRequest.execute(KinveyAuthRequest.java:208)
at com.kinvey.java.User$LoginRequest.execute(User.java:590)
at com.gl.kinvey.sample.SignUp.signup(SignUp.java:25)
at com.gl.kinvey.sample.SignUp.main(SignUp.java:16)
E
Edward
said
about 9 years ago
Hey,
the problem is `401 Unauthorized ... "Authorization needed"`
creating new users uses the app key and secret as credentials, which are set when the client is built.
Can you first double check the appkey and secret and compare them with the console?
Secondly, are you running this code on a server? or will it be on user's machines? If it is on a server, you can use the master secret -- but if it is being distributed, you should use the app secret.
ritika
public class SignUp {
public static final String appKey = "kid_Pnbmbmbnbm";
public static void main(String[] args){
SignUp obj=new SignUp();
Client mKinveyClient=SignUp.getClient();
obj.signup(mKinveyClient, "abc", "abc");
//obj.updateUser(mKinveyClient, "xyz", "xyz");
//obj.deleteUser(mKinveyClient, "xyz", "xyz");
}
public User signup(Client mKinveyClient,String userName,String password) {
User result=null;
try{
result = (User) mKinveyClient.user().createBlocking(userName, password).execute();
} catch (IOException e) {
System.out.println("Couldn't create -> " + e.getMessage());
}
return result;
}
public User updateUser(Client mKinveyClient,String userName,String password) {
User result=null;
mKinveyClient.user().put("fav_food", "bacon");
try{
result = (User) mKinveyClient.user().updateBlocking().execute();
} catch (IOException e) {
System.out.println("Couldn't create -> " + e.getMessage());
}
return result;
}
public void deleteUser(Client mKinveyClient,String userName,String password) {
try{
mKinveyClient.user().deleteBlocking(true).execute();
}catch (IOException e) {
System.out.println("Couldn't create -> " + e.getMessage());
}
}
public static Client getClient(){
Client myJavaClient = new Client.Builder(appKey, mastersecret).build();
return myJavaClient;
}
}
i am geting msg "Unknown" .I am unable to do any operation using the code given in User java guide
Please help.
Also want to know is there any sample application acting as a middlelayer and deployed on Kinvey cloud.Just like we see in Google app engine.
We are exploring how we can build a middle-layer using kinvey API and integrate with our mobile app.