我正试图在用户之间分享Android上的概念验证消息应用程序的领域。
我有一个访问URL的领域:realm://192.168.1.90:9080/lynxenger/contacts
,领域存在并且有一个寄存器,但是当我尝试使用创建领域的管理员用户更改它的权限时,我在日志中得到以下信息:
E/REALM_SYNC: Connection[2]: HTTP: Failed to switch protocols (response status = 400)
Here's a Gist with the code我用来更改权限和更新一些数据
服务器端似乎发生了错误,这是发生错误时的日志文件:
[proxy] internal error. Code undefined, status: undefined, message: SyntaxError: Unexpected token j in JSON at position 0
at Object.parse (native)
at ProxyService.webSocketUpgradeHandler (/usr/lib/nodejs/realm-object-server-developer/.build/src/node/services/proxy.js:104:30)
at ProxyService.safeUpgrade (/usr/lib/nodejs/realm-object-server-developer/.build/src/node/services/proxy.js:78:12)
at emitThree (events.js:116:13)
at Server.emit (events.js:194:7)
at onParserExecuteCommon (_http_server.js:411:14)
at HTTPParser.onParserExecute (_http_server.js:379:5)