New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Websocket failure #75
Comments
Since the example also randomly does AJAX, here is that error as well. It gives a much more informative stack trace clj side
|
Hi Ben, thanks for the report. I'm struggling to reproduce this on my end. Some questions (all in reference to the example project):
Will debug from there, thanks! |
Sure thing!
|
Yeah, I'm really struggling to get a reproduction of this. Have tried:
There's nothing at all unusual about your platform? You're not running this on Heroku or a remote server of some kind? Any browser plugins that may be interfering with your connections? Does anything here ring any bells for you? Could you show me your You're running the reference example as What OS are you on? The Ajax error you're seeing doesn't make sense to me unless you're actually manually modifying the On the off-chance that you've somehow ended up with corrupt code, could you try delete the following dirs before This'll delete your Maven artefacts for http-kit and everything by me so that they'll be pulled in fresh again on the next Thanks a lot for your help debugging this. |
alright, exactly what I've done:
I'm generally a vim person, so maybe I've done something horrible with emacs here?
the lovely tree
running this on a relatively standard linux box, 3.16.1-1-ARCH to be precise. I also suspected some sort of browser thing, which is why I tried a stock chromium... no luck. when websocketing, the JS console
when AJAXing, the JS console
the REPL
Sorry about causing such problems! If there is any more info you need, lemme know. |
Absolutely no problem, if there's an issue - I'd like to figure it out: thank you for providing data for debugging!
Still haven't been able to reproduce, and still no idea what the cause could be, unfortunately. Ignoring the WebSocket error for the moment since that could be related to http-kit #95. The Ajax error you're seeing shouldn't be possible and is on Sente's side, so let's try tackle that first: I've just uploaded
Much appreciated! |
It was working. Then I authenticated and it broke?
for the websockets |
Okay- we're getting somewhere!
This shouldn't be possible, and would explain the errors you're seeing for both WebSockets and Ajax. Let me dig into it and get back to you, I suspect I have all the info I need. |
Okay, so this appears to be an AOT issue caused by your You can confirm this and get Sente to run correctly by:
I expect that everything should work from there. As to why the compile call is causing issues - I can't actually say, I'll need to continue digging. The AOT compile call is causing some odd behaviour against one of Sente's supporting lib's types: (defrecord Swapped [new-val return-val])
(instance? Swapped (Swapped. "foo" "bar")) ; true before + after compile
(instance? Swapped (->Swapped "foo" "bar")) ; true before compile, false after I'll do some more digging to understand better what about the AOT compile call is actually causing issues, but in the meantime I'd suggest just avoiding the Thanks again for your assistance debugging, and please let me know if this does/doesn't resolve all the issues you were seeing. Cheers! :-) |
Just updated |
Seems like this may actually be a bug with Clojure: https://groups.google.com/forum/#!topic/clojure/LaTS7OFh01Q, http://dev.clojure.org/jira/browse/CLJ-979 |
Hey Ben, any follow-up on this? |
Ahh, sorry. It does indeed work! Thanks so much! |
This reverts commit e06557a.
I tried setting up sente myself, realized nothing was working, then ran the example. It still didn't work for some reason.
Chromes error message is more descriptive than FFx for the bug.
The text was updated successfully, but these errors were encountered: