Exception while invoking method 'setAvatarFromService'


#1

Hello! When a try upload a avatar image
Dec 3 09:58:21 dr00al088 rocketchat[7664]: Exception while invoking method ‘setAvatarFromService’ TypeError: Cannot read property ‘getFilter’ of undefined
Dec 3 09:58:21 dr00al088 rocketchat[7664]: at FileUploadClass.insert (/opt/Rocket.Chat/programs/server/packages/rocketchat_file-upload.js:712:31)
Dec 3 09:58:21 dr00al088 rocketchat[7664]: at EventEmitter.RocketChat.setUserAvatar (/opt/Rocket.Chat/programs/server/packages/rocketchat_lib.js:6805:13)
Dec 3 09:58:21 dr00al088 rocketchat[7664]: at MethodInvocation.setAvatarFromService (/opt/Rocket.Chat/programs/server/app/app.js:13289:23)
Dec 3 09:58:21 dr00al088 rocketchat[7664]: at MethodInvocation.methodMap.(anonymous function) (packages/rocketchat_monitoring.js:2731:30)
Dec 3 09:58:21 dr00al088 rocketchat[7664]: at MethodInvocation.methodsMap.(anonymous function) (/opt/Rocket.Chat/programs/server/packages/rocketchat_lib.js:2696:36)
Dec 3 09:58:21 dr00al088 rocketchat[7664]: at maybeAuditArgumentChecks (/opt/Rocket.Chat/programs/server/packages/ddp-server.js:1877:12)
Dec 3 09:58:21 dr00al088 rocketchat[7664]: at DDP._CurrentMethodInvocation.withValue (/opt/Rocket.Chat/programs/server/packages/ddp-server.js:902:126)
Dec 3 09:58:21 dr00al088 rocketchat[7664]: at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12)
Dec 3 09:58:21 dr00al088 rocketchat[7664]: at DDPServer._CurrentWriteFence.withValue (/opt/Rocket.Chat/programs/server/packages/ddp-server.js:902:98)
Dec 3 09:58:21 dr00al088 rocketchat[7664]: at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12)
Dec 3 09:58:21 dr00al088 rocketchat[7664]: at Promise (/opt/Rocket.Chat/programs/server/packages/ddp-server.js:902:46)
Dec 3 09:58:21 dr00al088 rocketchat[7664]: at new Promise (:null:null)
Dec 3 09:58:21 dr00al088 rocketchat[7664]: at Session.method (/opt/Rocket.Chat/programs/server/packages/ddp-server.js:875:23)
Dec 3 09:58:21 dr00al088 rocketchat[7664]: at /opt/Rocket.Chat/programs/server/packages/ddp-server.js:754:85


#2

Can you provide more details about your setup? Also can you try fetching the url from the rocket.chat server to verify it doesn’t have any issues accessing it