Skip to content

Parse Server livequery on AWS (Websocket error 403) #3635

Closed
@lyonlionng

Description

@lyonlionng

Issue Description

I am using currently on a project trying to make a chat system using parse server livequery. I am using AWS's Parse Server by Bitnami AMI to create a new instance. And i did the setups exactly as i did on my localhost. However whenever i run my ionic 2 application, it will show the websocket error as shown below.

WebSocket connection to 'ws://ec2-xxxx.ap-southeast-1.compute.amazonaws.com/parse' failed: Error during WebSocket handshake: Unexpected response code: 403

Steps to reproduce

  1. Create a instance of Parse Server by Bitnami
  2. Create a new ionic 2 application(any template)
  3. run "ionic serve --lab"
  4. inspect your console

Expected Results

There shouldnt be a websocket error and the livequery will auto reload and show on my chat system.

Actual Outcome

It shows the error and whenever i send a text to a user, the other party does not receive and updates until he backs out one screen and went back the same page.

Environment Setup

  • Server

    • parse-server version : 2.3.1
    • Operating System: Linux and Windows 10
    • Hardware: dont think this would be a problem...
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): AWS
  • Database

    • MongoDB version: 3.2.11
    • Storage engine: MMAPv1
    • Hardware: nil
    • Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): mLab

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions