endtwist/AjaxIM

Does anyone have it running properly?

kfa1983 opened this issue · 3 comments

Hey guys,

I've been trying to make it work for like 3 days now and I can't think of anything to fix it... And when I fix something, I get a new error...

Newest error:

Error: {"type":"error","error":"not authenticated"}
at Object.session as handle
at next (/root/node_modules/express/node_modules/connect/lib/http.js:204:15)
at Object.bodyParser as handle
at next (/root/node_modules/express/node_modules/connect/lib/http.js:204:15)
at Object.cookieParser as handle
at next (/root/node_modules/express/node_modules/connect/lib/http.js:204:15)
at Object.methodOverride as handle
at next (/root/node_modules/express/node_modules/connect/lib/http.js:204:15)
at Object.handle (/root/node_modules/express/lib/http.js:85:5)
at next (/root/node_modules/express/node_modules/connect/lib/http.js:204:15)

But on http://localhost:8000/dev/Cookie I get the "Cookie set" message, what is this happening?

On http://localhost:8000/dev, I just get the "hello" message and nothing else, no bar, no nothing... that's pretty exhausting too plus I don't even know if it'll work at the end..

H.E.L.P, please...

Thank you

I'm also trying to make it run and not seeing any chatbar.

Firstly, the jade files seem to be problematic and hence generating incorrect HTML.

I fixed HTML issues by changing colons to equals in chat.jade. i.e. " src= '/js/.. " instead of " src: '/js/.. " and similarly " type= 'text/javascript' " instead of " type: 'text/javascript' ".

This gave correct HTML rendering (view source in browser confirms that) but the Javscript and other static links do not load due to authentication middleware malfunctioning: gives 500 error responses.

I tried disabling auth middleware and the static content started serving well.

Anybody knows whats wrong with auth middeware?

In \server\dev\app.js
utils.uid()

Needs a parameter. Change it to something like
utils.uid(5)

That should fix your cookie issue.

A new version is available in the "master" branch which addresses this and other issues. If you have trouble with it, please reopen this issue or open a new issue.