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

Google Vision gets TypeError: this.storageClient.bucket is not a function #13166

Closed
skrantz2000 opened this issue Jan 16, 2019 · 0 comments · Fixed by #23160
Closed

Google Vision gets TypeError: this.storageClient.bucket is not a function #13166

skrantz2000 opened this issue Jan 16, 2019 · 0 comments · Fixed by #23160

Comments

@skrantz2000
Copy link

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:

  1. Set Admin -> File Upload -> Storage Type to Google Cloud Storage
  2. Configure GCS in Admin -> File Upload ->Google Cloud Storage section
  3. 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)

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

Successfully merging a pull request may close this issue.

1 participant