realm response status = 400

感情迁移 提交于 2019-12-24 08:11:48

问题


I'm trying to share a realm between users for a proof-of-concept messaging app on Android.

I have a realm with access url: realm://192.168.1.90:9080/lynxenger/contacts, the realm exists and has one register, but when I try to change it's permissions using an admin user that created the realm, I get the following on the log:

E/REALM_SYNC: Connection[2]: HTTP: Failed to switch protocols (response status = 400)

Here's a Gist with the code I use to change permissions and update some data

EDIT:

There seems to be an error happening at server-side, here's the log file when the error occurs:

[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)

EDIT 2:

Here's a pastebin with the android log

来源:https://stackoverflow.com/questions/44170810/realm-response-status-400

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!