java - 表没有保存到我的解析服务器上?
问题描述
我的服务器已设置并通过 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 解析服务器中,但什么都没有保存
解决方案
如果您发布 index.js 来比较您的服务器设置,这可能会有所帮助。
根据您的服务器设置,您可能需要在服务器 url 中使用 http 而不是 http 。
.server("https://**********/parse/")
推荐阅读
- vpn - IPSec L2TP - 隧道通过和握手间隔(华为路由器)
- python - 在其他应用程序上运行 python 脚本
- powershell - 从不同域中的 AD 组列表中提取 ADUser
- android - INSTALL_FAILED_CONFLICTING_PROVIDER 即使在 Manifest 中定义提供者和 GradleFile 中的 ApplicationId 时
- php - 在 MySQL 和 PHP 中使用聚合字符串函数
- angularjs - AngularJS $localstorage 在其他选项卡中不起作用
- docker - /bin/sh: 1: sudo: 运行 dockerfile 时找不到
- html - 如何使用连接到容器的向下箭头创建渐变 css
- android - 多语言不适用于日期选择器 Android
- c - C: 不能从 2 个管道文件描述符中读取而不会丢失另一个