更新APIGEE实体时出错

And*_*yce 5 java android asynchronous android-asynctask apigee

我正在开发一个实现apigee的应用程序,但是,我在尝试更新实体时遇到了一个问题.以下是我目前正在使用的方法.

            Map<String, Object> updatedEntity = new HashMap<String, Object>();
            ArrayList<Map<String,Object>> subPropertyArray = new ArrayList<Map<String,Object>>();
            Map<String, Object> subProperty = new HashMap<String, Object>();

            subProperty.put("age", "");
            subProperty.put("auto_checkin_times", auto_checkin_times);
            subProperty.put("auto_checkins_enabled", "on");
            subProperty.put("bio", "");
            subProperty.put("max_age", "999");
            subProperty.put("min_age","18");
            subProperty.put("dob", mDob);
            subProperty.put("locale","");
            subProperty.put("sex", mGender);
            subProperty.put("sexual_preference", mSexualPreference);
            subProperty.put("utc_offset","");
            subPropertyArray.add(subProperty);


            updatedEntity.put("type", "user");
            updatedEntity.put("info", subPropertyArray);

            dataClient.updateEntityAsync(entityID, updatedEntity, new ApiResponseCallback() {
                @Override
                public void onResponse(ApiResponse apiResponse) {
                    if (apiResponse != null) {
                            Intent intent = new Intent(SetupPage.this, HomePage.class);
                            startActivity(intent);
                    }
                }

                @Override
                public void onException(Exception e) {
                    Log.e("", e.toString());
                }
            });
Run Code Online (Sandbox Code Playgroud)

但是我收到以下错误:

"错误PUT到' https://api.usergrid.com/ ORGNAME/APPNAME/user/USERID "

其次是:

"没有发现身份验证挑战"

"doHttpRequest返回null"

任何帮助将受到高度赞赏.谢谢

And*_*yce 0

我应该早点回复他,但是,问题似乎归结为多个问题,entityid 略有错误,并且我发布的数据格式不正确。