Skip to content
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

[v7] Node Socketio: TypeError: Cannot read property 'user' of undefined #5852

Closed
anandpdoshi opened this issue Jul 24, 2016 · 4 comments
Closed

Comments

@anandpdoshi
Copy link
Contributor

/home/frappe/benches/bench-2016-07-24-a/apps/frappe/socketio.js:48
                                var room = get_user_room(socket, res.body.message.user);
                                                                                 ^
TypeError: Cannot read property 'user' of undefined
    at /home/frappe/benches/bench-2016-07-24-a/apps/frappe/socketio.js:48:54
    at Request.callback (/home/frappe/benches/bench-2016-07-24-a/node_modules/superagent/lib/node/index.js:591:12)
    at Stream.<anonymous> (/home/frappe/benches/bench-2016-07-24-a/node_modules/superagent/lib/node/index.js:766:18)
    at Stream.emit (events.js:117:20)
    at Unzip.<anonymous> (/home/frappe/benches/bench-2016-07-24-a/node_modules/superagent/lib/node/utils.js:108:12)
    at Unzip.emit (events.js:117:20)
    at _stream_readable.js:944:16
    at process._tickCallback (node.js:448:13)
@rmehta
Copy link
Member

rmehta commented Jul 24, 2016

works in local

@anandpdoshi
Copy link
Contributor Author

could be due to an update in a js lib

@rmehta rmehta modified the milestone: ERPNext 7 Jul 26, 2016
@rmehta rmehta closed this as completed Jul 26, 2016
@vqw
Copy link

vqw commented Sep 21, 2017

We are encountering exactly the same issue, unfortunately we can't figure it out.
Is it because of wrong SID or unexpected response from frappe.async_get_user_info?

@rmehta
Copy link
Member

rmehta commented Sep 22, 2017

Most likely you are using an older version of socketio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants