How to solve 403 error in LiveQuery - Parse Server stack

Keywords: Parse - AWS - How to - Application configuration

Description:
Hello!
In my current config.json file I am configuring livequery. But every time I try to connect, I get the following error " failed: Error during WebSocket handshake: Unexpected response code: 403" . I read the javascript config files in the lib folder (parse stack config), but everything looks fine.

{
“appId”: “xxxxx”,
“masterKey”: “xxxxxxx6”,
“appName”: “parse-server”,
“mountPath”:"/parse",
“port”: “1337”,
“host”: “127.0.0.1”,
“serverURL”: “http://127.0.0.1/parse”,
“databaseURI”: “xxxxxx”,
“startLiveQueryServer”: “true”,
“liveQuery”: {
“classNames”: [ “orders”]
},
}

I also tried setting the liveQueryServerOptions object in the config object.

“liveQueryServerOptions”: {.
“appId”: “xxxx”,
“serverURL”: “wss://127.0.0.1:1337”
“masterKey”: “xxxxx”
}

but anyway, in both forms, I get the same error.
Should I add another configuration to my config.json file?
Should I add an additional configuration for apache web sockets?

Thanks to anyone who can help me.

Hi @davidrb04,

Please take a look at this previous documentation:

Regards

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.