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

Cannot compose insecure credential: combinedChannelCredentials w/ createFromMetadataGenerator + createInsecure #567

Closed
willyyang opened this issue Oct 5, 2018 · 1 comment

Comments

@willyyang
Copy link

Problem description

Error: Cannot compose insecure credential

Reproduction steps

const metadataUpdater = (_, cb) => {
    const metadata = new grpc.Metadata()
    metadata.set('key', 'test11')
    cb(null, metadata)
  }
  const metadataCreds = grpc.credentials.createFromMetadataGenerator(
    metadataUpdater
  )
  const insecureSSL = grpc.credentials.createInsecure()

  obClient = new serviceProto(
    `${host:port}`,
    grpc.credentials.combineChannelCredentials(insecureSSL, metadataCreds)
  )

Environment

  • OS name, version and architecture: macOS 10.13.6
  • Node version: 9.2.0
  • Node installation method : nvm
  • Package name and version: [email protected]
@murgatroid99
Copy link
Member

Please see #543 for an explanation of this behavior.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants