question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

help about credentials in Server

See original GitHub issue

This code is from etcd to create server, and when I let grpcServer listen at http://localhost:2379, tls === nil and grpc.NewServer doesn’t include grpc.Creds.

func Server(s *etcdserver.EtcdServer, tls *tls.Config, gopts ...grpc.ServerOption) *grpc.Server {
	var opts []grpc.ServerOption
	opts = append(opts, grpc.CustomCodec(&codec{}))
	if tls != nil {
		opts = append(opts, grpc.Creds(credentials.NewTLS(tls)))
	}
	opts = append(opts, grpc.UnaryInterceptor(newUnaryInterceptor(s)))
	opts = append(opts, grpc.StreamInterceptor(newStreamInterceptor(s)))
	opts = append(opts, grpc.MaxRecvMsgSize(int(s.Cfg.MaxRequestBytes+grpcOverheadBytes)))
	opts = append(opts, grpc.MaxSendMsgSize(maxSendBytes))
	opts = append(opts, grpc.MaxConcurrentStreams(maxStreams))
	grpcServer := grpc.NewServer(append(opts, gopts...)...)

I want to do the same thing with nodejs grpc, does grpc.ServerCredentials.createInsecure() work?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
zyf0330commented, Jun 11, 2018

I have tried python grpc, and python-client behaviors like node-client. It gives error

Traceback (most recent call last):
  File "greeter_client.py", line 38, in <module>
    run()
  File "greeter_client.py", line 33, in run
    response = stub.SayHello(helloworld_pb2.HelloRequest(name='you'))
  File "/home/zyf/.local/lib/python3.6/site-packages/grpc/_channel.py", line 500, in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "/home/zyf/.local/lib/python3.6/site-packages/grpc/_channel.py", line 434, in _end_unary_response_blocking
    raise _Rendezvous(state, None, None, deadline)
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)>

which is the same as error of node-client.

Using python-server with go-client works normally.

I don’t try C++ grpc, because both client and server cannot run and show core dump, I don’t know why.

0reactions
Sunnykabycommented, May 29, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Accessing Credential Manager
Credential Manager lets you view and delete your saved credentials for signing in to websites, connected applications, and networks.
Read more >
Protecting Credentials in Window Server 2016
This guide explains the Windows Server 2016 features that can help you to protect user and admin credentials from being harvested by hackers ......
Read more >
Credentials
Use default credentials: Runs all workflows using the default Run As account, which defaults to the LocalSystem account. · Require user ...
Read more >
ArcGIS Server web services—ArcGIS Online Help
If you own or have privileges to administer secure services with embedded credentials and your secure service's data source is using the HTTP...
Read more >
Manage Saved Credentials for Data Connections
Note: If you're a Tableau Server user and can't delete saved credentials, ... To help ensure uninterrupted data access from existing Tableau content...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found