【问题标题】:tables are not saving onto my parse server?表没有保存到我的解析服务器上?
【发布时间】:2019-09-04 18:33:10
【问题描述】:

我的服务器已设置并通过 SSH 访问,但现在尝试连接到解析服务器和相同的内容我收到此错误“com.parse.ParseRequest$ParseRequestException: i/o failure”

公共类 StarterApplication 扩展应用程序 {

@Override
public void onCreate() {
    super.onCreate();


    // Enable Local Datastore.
    Parse.enableLocalDatastore(this);

    // Add your initialization code here
    Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
            .applicationId("**********")
            .clientKey("**************")
            .server("http://**********/parse/")
            .build()
    );

在活动中

ParseObject score = new ParseObject("Score");
    score.put("username", "dwayne");
    score.put("score", 45);
    score.saveInBackground(new SaveCallback() {
        @Override
        public void done(ParseException e) {
            if (e == null) {
                // OK
                Log.i("Success", "We saved the score");
            } else {
                e.printStackTrace();
            }
        }
    });

试图让它记录到我的 AWS 解析服务器中,但什么都没有保存

【问题讨论】:

  • 您不应将您的服务器地址和密钥分享到互联网。如果您启动 Parse Dashboard 并将其设置为连接到此服务器,它可以工作吗?
  • 解析仪表板工作,但没有记录
  • “它有效”是什么意思?例如,您可以创建一个新类吗?
  • 它的工作原理是说我的仪表板可以让我知道我的解析中的即时消息,但没有字段被占用或已创建新字段
  • 您可以使用仪表板创建新课程吗?

标签: java parse-server


【解决方案1】:

如果您发布 index.js 来比较您的服务器设置,这可能会有所帮助。

根据您的服务器设置,您可能需要在服务器 url 中使用 https 而不是 http。

 .server("https://**********/parse/")

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-23
    相关资源
    最近更新 更多