Android 查询用户时出现问题“;不支持此身份验证方法";
我完成了本地使用解析平台的迁移过程。我已经在本地主机上部署了,并在mongolab上托管了DB。第一步是尝试使用本地解析服务器在mongolab上托管的DB实例上注册用户 这是本地部署的解析服务器的代码,下面是android的代码片段Android 查询用户时出现问题“;不支持此身份验证方法";,android,parse-platform,Android,Parse Platform,我完成了本地使用解析平台的迁移过程。我已经在本地主机上部署了,并在mongolab上托管了DB。第一步是尝试使用本地解析服务器在mongolab上托管的DB实例上注册用户 这是本地部署的解析服务器的代码,下面是android的代码片段 // Enable Local Datastore. Parse.enableLocalDatastore(this); Stetho.initializeWithDefaults(this); // Add your initialization code he
// Enable Local Datastore.
Parse.enableLocalDatastore(this);
Stetho.initializeWithDefaults(this);
// Add your initialization code here
//Parse.initialize(this);
Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
.applicationId("my app id")
.clientKey("my client key")
.server("http://10.12.41.250:1337/parse/") // '/' important after 'parse'
.addNetworkInterceptor(new ParseStethoInterceptor())
.build());
....
....
final ParseUser parseUser = new ParseUser();
parseUser.setUsername(edtUsername.getText().toString());
parseUser.setPassword(edtPassword.getText().toString());
parseUser.signUpInBackground(new SignUpCallback() {
@Override
public void done(ParseException e) {
if (e == null) {
Toast.makeText(SignUpActivity.this, "You are now registered.", Toast.LENGTH_SHORT).show();
//Success
} else {
Toast.makeText(SignUpActivity.this, e.getMessage(), Toast.LENGTH_SHORT).show();
Log.d(TAG, e.getMessage());
//Failure
}
}
});
执行此操作后,我收到ParseRequestException,错误消息为“此身份验证方法不受支持”,现在我不知道它是关于什么的,到目前为止,我发现的唯一一件事是
以下是网络拦截器的详细信息
任何形式的帮助都将不胜感激。所以,这是一个问题,现在是。我不知道为什么,但经过4天左右的尝试,它今天的效果令人惊讶。我所做的只是从mongolab中删除数据库,创建一个新的数据库,然后再次执行迁移过程。奇怪。