-
-
Notifications
You must be signed in to change notification settings - Fork 209
Unable to retrieve data from parse #174
Comments
Hi, seeing this same issue when running a Parse server on Heroku. Thought it was a problem with their latest stack, but it seems they fully support WS now. Any suggestions? |
Yes, I realized that I was missing the liveQuery on my node server, I included it and the socket error stopped.
But now now I'm still unable to receive data, on chrome's console I get this: Uncaught TypeError: this._subscriptions[name].dispose is not a function, and this problem comes from this peace of code from parse-react:
|
I too missed that LiveQuery was a requirement (!) and am now also able to POST but not receive any data via web sockets / LiveQuery observe methods. FWIW, I'm using the following:
|
Anyone have any idea of how to solve this? It's a major issue, and it looks like nobody is talking about this on the web. On my development team, the android dev had no problem with parse using the exactly same nodejs server, so it must be something wrong on parse-react. |
Could you try the following?
It seems that someone introduced a subscribe function into the Parse code, which breaks the Parse patch from ParseReact (if you want both ParseReact and liveQuery you should change all references to subscribe in the ParseReact code to another function name). Let me know if this fixes your problem (I had a similar problem and had to dive into the code to find what was going on) |
@dcalogue I think you are right! I was too lazy to change all the references of subscribe, so I did this just to give it a shot:
And it worked! |
That's what I did too, but be warned that we are overwriting a Parse function (not only adding a new one, which was what the Patch did before), so some functionality may be missing (I think the function we are overriding is related to the new liveQuery functionality) |
Someone should really fix this for the next ParseReact release. |
Is anyone still working on the next ParseReact release? |
You can install an earlier version of Parse. I went back to |
@haydenbleasel |
Hello,
I am using parse as my app back-end, but I am unable to receive data with the observe() method, although I'm sure that react is properly connect with parse because I can mutate data with the ParseReact.mutation.
On the console I receive this message: "WebSocket connection to 'ws://mywsaddress:8080/parse' failed: Connection closed before receiving a handshake response" and the this.data.pins gets undefined,I checked the data in parse-dashboard and the Pin class is has the properly data.
The text was updated successfully, but these errors were encountered: