解析创建用户示例不起作用

时间:2015-05-20 08:14:31

标签: javascript parse-platform

我正在尝试为我正在处理的新网络项目制作注册屏幕。它似乎没有工作,所以我尝试使用Parse.com上的基本创建用户示例

function register()
{
  var user = new Parse.User();
  user.set("username", "my name");
  user.set("password", "my pass");
  user.set("email", "email@example.com");


  user.signUp(null, {
    success: function(user) {
      // Hooray! Let them use the app now.
    },
    error: function(user, error) {
      // Show the error message somewhere and let the user try again.
      alert("Error: " + error.code + " " + error.message);
    }
  });

}

每次拨打电话我都会收到此错误...

enter image description here

任何想法都将不胜感激。

由于

2 个答案:

答案 0 :(得分:2)

您可以在此处找到有关Parse的错误代码的详细信息:https://www.parse.com/docs/js/guide#errors

100是" ConnectionFailed"。好像你(或至少你的app ^^)连接到Parse服务器有问题...

希望它有所帮助。

(另一方面,你应该编辑你的第一篇文章而不是回答,如果你想为你的问题添加信息,跟进等;)

答案 1 :(得分:0)

刚检查了数据库......结果证明它正在工作但仍然抛出错误状态。猜猜我现在必须检查具体的错误