Giter Club home page Giter Club logo

Comments (9)

chadpav avatar chadpav commented on August 12, 2024

@Vortec4800 I just hit this same error message. I actually have LiveQuery working locally (same ParseServer + LiveQueryServer instance). I also have it working on the same instance in AWS.

I just ran into this error when trying to split out LiveQuery to it's own AWS Application and talking to our existing ParseServer as suggested in the Scalability section of the LiveQuery wiki (note: I'm not using a Redis server yet, just trying to get 1 instance of PS to talk to 1 instance of LQS).

Are you running 1 instance or 2? Are you running locally or in something like AWS?

from parselivequery-ios-osx.

Vortec4800 avatar Vortec4800 commented on August 12, 2024

I'm just running a single instance on a single server, which is a Digital Ocean server.

I did end up figuring out my issue, I was using SSL for my Parse server, which means the websocket the Live server uses is SSL too, but the iOS client was hard-coded to use ws:// instead of wss:// (which is like https://). Once I changed that, it started working.

I do wish there were better error messages though...

from parselivequery-ios-osx.

chadpav avatar chadpav commented on August 12, 2024

Thanks for the response. I'm not using SSL yet but I did resolve this issue.

For reasons not relevant here, my LiveQuery Server wasn't even starting. For others coming here, the 1001 stream end encountered error is probably indicating that your client can't reach the server at the URL you gave it whether it's an SSL config problem or your server isn't listening on the address you gave it.

from parselivequery-ios-osx.

FredvanRijswijk avatar FredvanRijswijk commented on August 12, 2024

Did anyone off you have this working client side on iOS Swift ? I can't figure it out...

from parselivequery-ios-osx.

chadpav avatar chadpav commented on August 12, 2024

@FredvanRijswijk I have LiveQuery working in an iOS Swift app. Do you have a specific question or error message? If it's not related to this issue please open a new one.

from parselivequery-ios-osx.

FredvanRijswijk avatar FredvanRijswijk commented on August 12, 2024

@chadpav Need some support for how to use the data with LiveQuery like in #38 maybe it's me misunderstanding and lack of experience and missing some documentation... ;-(

from parselivequery-ios-osx.

chadpav avatar chadpav commented on August 12, 2024

@FredvanRijswijk it wasn't as straightforward as it should have been. I probably should submit a documentation update if I am able to help you through it.

Do you have a specific question or maybe you should just contact me. I'm at chadpav at the gmail.

from parselivequery-ios-osx.

zh-wowtv avatar zh-wowtv commented on August 12, 2024

I got the same problem here. My server code:

server.use(
  '/parse',
  new ParseServer({
    databaseURI: DATABASE_URI,
    cloud: path.resolve(__dirname, 'cloud.js'),
    appId: APP_ID,
    masterKey: MASTER_KEY,
    serverURL: `http://${SERVER_HOST}:${SERVER_PORT}/parse`
    liveQuery: {
      classNames: ['Room','Message']
    }
  })
)

server.listen(SERVER_PORT, () => console.log(
  `Server is now running in ${process.env.NODE_ENV || 'development'} mode on http://localhost:${SERVER_PORT}`
))
ParseServer.createLiveQueryServer(server);

Screenshot when I run the LiveQueryDemo:

1

from parselivequery-ios-osx.

protspace avatar protspace commented on August 12, 2024

have same error. Appeared after I changed to db connection url in parse-server config to:

mongodb://parse:password@your_domain_name:27017/database_name?ssl=true

from parselivequery-ios-osx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.