You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clicking "or talk as anonymous" doesn't work #8982
Might be relevant... Doesn't increment when button is pressed but is in browser logs several times:
Exception in template helper: TypeError: Cannot read property '_id' of null
at Object.condition (https://s.rocket.chat/0e9b9d3ea29454961e3d11673f9fa698b04622fd.js?meteor_js_resource=true:323:1327)
at https://s.rocket.chat/0e9b9d3ea29454961e3d11673f9fa698b04622fd.js?meteor_js_resource=true:181:40891
at Array.map (<anonymous>)
at Function.A.map.A.collect (https://s.rocket.chat/0e9b9d3ea29454961e3d11673f9fa698b04622fd.js?meteor_js_resource=true:7:1106)
at t.e [as getButtons] (https://s.rocket.chat/0e9b9d3ea29454961e3d11673f9fa698b04622fd.js?meteor_js_resource=true:181:40806)
at Object.messageActions (https://s.rocket.chat/0e9b9d3ea29454961e3d11673f9fa698b04622fd.js?meteor_js_resource=true:243:42032)
at https://s.rocket.chat/0e9b9d3ea29454961e3d11673f9fa698b04622fd.js?meteor_js_resource=true:79:31289
at https://s.rocket.chat/0e9b9d3ea29454961e3d11673f9fa698b04622fd.js?meteor_js_resource=true:79:17146
at https://s.rocket.chat/0e9b9d3ea29454961e3d11673f9fa698b04622fd.js?meteor_js_resource=true:79:31922
at Function.e._withTemplateInstanceFunc (https://s.rocket.chat/0e9b9d3ea29454961e3d11673f9fa698b04622fd.js?meteor_js_resource=true:79:37631)
Here is the error Exception in template helper: TypeError: Cannot read property '_id' of null at Object.condition (https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:347:1290) at https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:183:66053 at Function.h.map.h.collect (https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:9:1316433) at t.e [as getButtons] (https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:183:65968) at Object.messageActions (https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:251:56551) at https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:87:31314 at https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:87:17160 at https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:87:31947 at Function.e._withTemplateInstanceFunc (https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:87:37671) at https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:87:31854
Exception while invoking method 'registerUser'
Error: Can't call setUserId in a method after calling unblock at MethodInvocation.setUserId (/app/code/bundle/programs/server/packages/ddp-common.js:367:13) at AccountsServer.Ap._loginUser (/app/code/bundle/programs/server/packages/accounts-base.js:744:20) at MethodInvocation.registerUser (/app/code/bundle/programs/server/app/app.js:10709:20) at MethodInvocation.methodMap.(anonymous function) (packages/rocketchat_monitoring.js:2731:30) at MethodInvocation.methodsMap.(anonymous function) (/app/code/bundle/programs/server/packages/rocketchat_lib.js:2504:36) at maybeAuditArgumentChecks (/app/code/bundle/programs/server/packages/ddp-server.js:1877:12) at DDP._CurrentMethodInvocation.withValue (/app/code/bundle/programs/server/packages/ddp-server.js:902:126) at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1186:12) at DDPServer._CurrentWriteFence.withValue (/app/code/bundle/programs/server/packages/ddp-server.js:902:98) at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1186:12) at Promise (/app/code/bundle/programs/server/packages/ddp-server.js:902:46) at new Promise (:null:null) at Session.method (/app/code/bundle/programs/server/packages/ddp-server.js:875:23) at /app/code/bundle/programs/server/packages/ddp-server.js:754:85
After installing a new snap, it works fine, so it has something to do with one of the settings I messed with. I didn't change any permissions but I enabled a few things like translation, Google OAuth, etc.. I'll check my changes to see if I can reproduce. Thanks for opening it back up.
Activity
ggazzo commentedon May 28, 2018
@geekgonecrazy I think it's working now, am I wrong?

geekgonecrazy commentedon May 29, 2018
I don't recall which server this was. So i'll go ahead and close, looks like its working to me now too
ggazzo commentedon May 29, 2018
;)
vplme commentedon Jul 4, 2018
I'm having an issue with the "Or talk as anonymous" button. Clicking it does nothing (docker image version 0.66.0). Tested in Safari, Chrome, Firefox.
I downgraded to version 0.65.2 and in this version clicking on "Or talk as anonymous" button does show the choose username dialog.
fais3000 commentedon Jul 7, 2018
I'm having the same issue on 0.66.0
Here is the error
Exception in template helper: TypeError: Cannot read property '_id' of null at Object.condition (https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:347:1290) at https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:183:66053 at Function.h.map.h.collect (https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:9:1316433) at t.e [as getButtons] (https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:183:65968) at Object.messageActions (https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:251:56551) at https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:87:31314 at https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:87:17160 at https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:87:31947 at Function.e._withTemplateInstanceFunc (https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:87:37671) at https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:87:31854geekgonecrazy commentedon Jul 11, 2018
@ggazzo looks like may not have gone away?
SamirSaidani commentedon Jul 13, 2018
same issue with 0.66.2 docker version
Exception while invoking method 'registerUser'
Error: Can't call setUserId in a method after calling unblock at MethodInvocation.setUserId (/app/code/bundle/programs/server/packages/ddp-common.js:367:13) at AccountsServer.Ap._loginUser (/app/code/bundle/programs/server/packages/accounts-base.js:744:20) at MethodInvocation.registerUser (/app/code/bundle/programs/server/app/app.js:10709:20) at MethodInvocation.methodMap.(anonymous function) (packages/rocketchat_monitoring.js:2731:30) at MethodInvocation.methodsMap.(anonymous function) (/app/code/bundle/programs/server/packages/rocketchat_lib.js:2504:36) at maybeAuditArgumentChecks (/app/code/bundle/programs/server/packages/ddp-server.js:1877:12) at DDP._CurrentMethodInvocation.withValue (/app/code/bundle/programs/server/packages/ddp-server.js:902:126) at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1186:12) at DDPServer._CurrentWriteFence.withValue (/app/code/bundle/programs/server/packages/ddp-server.js:902:98) at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1186:12) at Promise (/app/code/bundle/programs/server/packages/ddp-server.js:902:46) at new Promise (:null:null) at Session.method (/app/code/bundle/programs/server/packages/ddp-server.js:875:23) at /app/code/bundle/programs/server/packages/ddp-server.js:754:85
fais3000 commentedon Jul 13, 2018
SamirSaidani commentedon Aug 2, 2018
link with #11381
11 remaining items
wreiske commentedon Nov 15, 2018
I'm taking a look at this now @benjamin-dk
wreiske commentedon Nov 15, 2018
Pushing my changes here in a few. Got this fixed.
FaizanZahid commentedon Nov 20, 2018
very nice work guys!
mjjabarullah commentedon Nov 20, 2018
can anyone make a video for how to fix this anonymous registration. ???[FIX] Fixed Anonymous Registration #12633
Fixed Anonymous Registration (#12633)
Release 0.72.0 (#12742)
Release/v0.73.0 0.9.9 (#581)
jonnytest1 commentedon Jun 24, 2019
I just installed rocket chat via snap the other day ( version 1.0.3 ) and I also get this error ?
(by the way I found it works if you disable allow anonymous read while the user in this buggy state and then instantly reenable it :P )
mrmookie commentedon Apr 1, 2020
Same issue on version 2.4.11 snap Ubuntu 18.04. Unable to chat as anon.
rasos commentedon Apr 1, 2020
@mrmookie is your behaviour also similar to #16756?
geekgonecrazy commentedon Apr 1, 2020
@RocketChat/frontend not sure if any new issues tracking? But looks like maybe this isn’t working?
mrmookie commentedon Apr 1, 2020
After installing a new snap, it works fine, so it has something to do with one of the settings I messed with. I didn't change any permissions but I enabled a few things like translation, Google OAuth, etc.. I'll check my changes to see if I can reproduce. Thanks for opening it back up.