Skip to content

TypeError: Channel credentials must be a ChannelCredentials object when creating CloudTasksClient #92

Open
@vrayco

Description

@vrayco

I'm encountering the same problem as detailed in this GitHub issue: #77. Despite attempting the suggested workaround of aligning the @grpc/grpc-js version, the issue persists.

The error message I'm receiving is:

TypeError: Channel credentials must be a ChannelCredentials object at new ChannelImplementation

This error arises when executing the following code:

const client = new CloudTasksClient({
  port: 8123,
  servicePath: "localhost",
  sslCreds: credentials.createInsecure(),
});

The versions I'm using are:

  • Npm dependency: @google-cloud/tasks: 4.0.1
  • Docker image: cloud-tasks-emulator: 1.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions