Hello,
I have just started using app42 with cocos2d-x (currently working on android build)
but i am not able to simply create user or get user info, below is my code
App42API::Initialize(API_KEY, SECRET_KEY);
UserService *userService = App42API::BuildUserService();
const char* userName = "smit";
const char* pwd = "patel";
const char* emailId = "dummy@nthg.com";
userService->CreateUser(userName, pwd, emailId, app42callback(MenuLogin::onUserRequestCompleted, this));
// or trying to get user create in dashboard
userService->GetUser(userName, app42callback(MenuLogin::onUserRequestCompleted, this));
in logcat i am getting this error response,
D/libc-netbsd( 3113): getaddrinfo: https%3A%2F%2Fapi.shephertz.com%2Fcloud%2F1.0
%2Fuser%2Fsmit%3F NO result from proxy
D/cocos2d-x debug info( 3113):
D/cocos2d-x debug info( 3113): code=-1...=0
D/cocos2d-x debug info( 3113):
D/cocos2d-x debug info( 3113): Response Body=
D/cocos2d-x debug info( 3113):
D/cocos2d-x debug info( 3113): errordetails:Couldn't resolve host 'https%3A%2F%2
Fapi.shephertz.com%2Fcloud%2F1.0%2Fuser%2Fsmit%3F'
D/cocos2d-x debug info( 3113):
D/cocos2d-x debug info( 3113): errorMessage:
D/cocos2d-x debug info( 3113):
D/cocos2d-x debug info( 3113): appErrorCode:0
D/cocos2d-x debug info( 3113):
D/cocos2d-x debug info( 3113): httpErrorCode:-1
I checked in 2 diff devices, also internet is working fine.
Also tested with carrier 3g and wifi but same result.
any idea whats wrong?