I’ve been working on a realm project for a few months and just started getting this error when attempting to open the realm with nodejs sdk
Connection[1]: Connection closed due to error
{
name: 'Error',
message: 'Bad WebSocket response 500 internal server error',
isFatal: false,
category: 'realm::util::websocket::Error',
code: 16,
userInfo: {}
}
Connection[1]: Connected to endpoint '52.64.157.195:443' (from '192.168.1.3:51071')
ERROR: Connection[1]: Websocket: Expected HTTP response 101 Switching Protocols, but received:
HTTP/1.1 500 Internal Server Error
cache-control: no-cache, no-store, must-revalidate
connection: close
content-length: 204
content-type: application/json
date: Thu, 18 Nov 2021 04:55:47 GMT
server: envoy
vary: Origin
x-envoy-max-retries: 0
x-frame-options: DENY
The logs in MongoDB Realm read:
Error:
failed to construct service instance with name "mongodb-atlas": only [uri, clusterId, clusterName, clusterType, clusterSize, clusterUpdated, dbUsername, dbPassword, lastUpdated, wireProtocolEnabled, regionName, groupName, orgName, namespacePreimageConfigs, readPreference, readPreferenceTagSets, sync, sync_query, certificate] are allowed config options
Function Call Location:
AU
Remote IP Address:
203.100.214.34
SDK:
darwin vRealmJS/10.6.1
Platform Version:
v14.17.1
I’ve terminated and re-enabled sync, reset the client, rolled back changes I had deployed. Nothing helped.
Anyone have any suggestions here? I’m stuck