Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Error when using user update API

Open tristanflorcb opened this issue 10 years ago • 4 comments

Your Rocket.Chat version: 0.45.0

I'm getting this error when updating user via rest API:

Error: Meteor.userId can only be invoked in method calls. Use this.userId in publish functions.

tristanflorcb avatar Nov 21 '16 08:11 tristanflorcb

@tristanflorcb is this error still happening today?

graywolf336 avatar Feb 03 '17 13:02 graywolf336

I'm getting it since 0.55.0-rc.4. 0.55.0-rc3 still worked...and limit-rated. Probably has to do with pull #6659 fixing #5491 as it's the only thing changing userId to Meteor.userId in between the two (and not in 0.55.0, as the releases page says)

reist avatar Apr 20 '17 11:04 reist

Additional information - 0.55.0-rc.4 broke updating of both email and username fields. Before that version, only updating of the name field was broken. All other updates don't seem to have the rate-limiting checks and as such are free to update.

reist avatar Apr 20 '17 19:04 reist

@rocket-cat close Closing due to lack of activity. Please test on latest and reopen or create a new issue if necessary.

reetp avatar Oct 29 '18 16:10 reetp