You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, it will try to reconnect without sending the installation ID which will allow it to connect successfully. However, sometimes it doesn't retry, in which case it just never establishes the LiveQuery connection.
I'm wondering if there's a way to prevent it from sending the installation ID and just send the applicationId and javascriptKey when creating the connection (which seems to be successful each time).
@dplewis thanks for the response. I'm currently using a hosted Parse server on Sashido. Their latest version is 3.6 so unfortunately I don't have control over that. I'll ask them when they plan to update the the latest. Do you happen to know what version this issue was first resolved in?
@dplewis thanks for the workaround tip. That works for me. I didn't realize you could set that value directly with the LiveQueryClient instance. It isn't totally clear in these LiveQueryClient docs . For anyone who finds this:
let LiveQueryClient = Parse.LiveQueryClient;
let client = new LiveQueryClient({
applicationId: '',
serverURL: '',
javascriptKey: ''
});
client.additionalProperties = false;
client.open();
let subscription = client.subscribe(query);
Issue Description
When trying to establish a LiveQuery websocket, sometimes I get this error:
{op: "error", error: "Additional properties not allowed", code: 1, reconnect: true}
In some cases, it will try to reconnect without sending the installation ID which will allow it to connect successfully. However, sometimes it doesn't retry, in which case it just never establishes the LiveQuery connection.
I'm wondering if there's a way to prevent it from sending the installation ID and just send the applicationId and javascriptKey when creating the connection (which seems to be successful each time).
Please see this recording of what I'm seeing in the browser Network tab: https://www.loom.com/share/9f7b96eeb7f049aa8f66a24413a9d977
Environment Setup
Server
JS SDK
Logs/Trace
{op: "error", error: "Additional properties not allowed", code: 1, reconnect: true}
The text was updated successfully, but these errors were encountered: