Repository navigation
Description
Description:
Enable Google Vision per documentation and when called gets:
Exception in defer callback: TypeError: this.storageClient.bucket is not a function
at GoogleVision.annotate (packages/rocketchat:google-vision/server/googlevision.js:113:40)
at packages/rocketchat:lib/lib/callbacks.js:100:26
at Array.reduce ()
at Object.RocketChat.callbacks.run (packages/rocketchat:lib/lib/callbacks.js:93:27)
at Meteor.defer (packages/rocketchat:file-upload/server/methods/sendFileMessage.js:80:43)
at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12)
at packages/meteor.js:620:25
at runWithEnvironment (packages/meteor.js:1356:24)
Steps to reproduce:
- Set Admin -> File Upload -> Storage Type to Google Cloud Storage
- Configure GCS in Admin -> File Upload ->Google Cloud Storage section
- Configure Google Vision in Admin -> File Upload -> Google Vision section
Expected behavior:
Expecting to see Google Vision classification annotations when uploading a file
Actual behavior:
Uploads as if Google Vision is not enabled.
Server Setup Information:
- Version of Rocket.Chat Server: 0.73.2
- Operating System: Linux
- Deployment Method: Kubernetes/Docker
- Number of Running Instances: 1
- DB Replicaset Oplog: disabled
- NodeJS Version: 8.11.3
- MongoDB Version: 4.0.5
Additional context
I am using Docker Image rocketchat/rocket.chat:latest
Relevant logs:
Starting Email Intercepter...
LocalStore: store created at
LocalStore: store created at
LocalStore: store created at
LocalStore: store created at
LocalStore: store created at
LocalStore: store created at
Setting default file store to GoogleCloudStorage
Warning: connect.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
{"line":"121","file":"migrations.js","message":"Migrations: Not migrating, already at version 137","time":{"$date":1547639920783},"level":"info"}
ufs: temp directory created at "/tmp/ufs"
Updating process.env.MAIL_URL
Using GridFS for custom sounds storage
Using GridFS for custom emoji storage
Push: configuring...
Push.Configure { sendTimeout: 60000,
apn: undefined,
gcm: undefined,
production: true,
sendInterval: 5000,
sendBatchSize: 10 }
Push: Send worker started, using interval: 5000
➔ System ➔ startup
➔ +-----------------------------------------------+
➔ | SERVER RUNNING |
➔ +-----------------------------------------------+
➔ | |
➔ | Rocket.Chat Version: 0.73.2 |
➔ | NodeJS Version: 8.11.3 - x64 |
➔ | Platform: linux |
➔ | Process Port: 3000 |
➔ | Site URL: hidden |
➔ | ReplicaSet OpLog: Disabled |
➔ | Commit Hash: 8ff0e3d |
➔ | Commit Branch: HEAD |
➔ | |
➔ +-----------------------------------------------+
Exception in defer callback: TypeError: this.storageClient.bucket is not a function
at GoogleVision.annotate (packages/rocketchat:google-vision/server/googlevision.js:113:40)
at packages/rocketchat:lib/lib/callbacks.js:100:26
at Array.reduce ()
at Object.RocketChat.callbacks.run (packages/rocketchat:lib/lib/callbacks.js:93:27)
at Meteor.defer (packages/rocketchat:file-upload/server/methods/sendFileMessage.js:80:43)
at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12)
at packages/meteor.js:620:25
at runWithEnvironment (packages/meteor.js:1356:24)
Activity