zhouguanglong1
zhouguanglong1
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'CIMClient': Invocation of init method failed; nested exception is io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection timed out: no further information: /172.17.48.1:11211 at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:137) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:409) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE] at...
前提:使用kitex框架,客户端和服务端通信,使用grpc协议 1. kitex服务端如果是本地启动,在客户端设置client.WithHostPorts(addrs...),可以正常GRPC请求 2. kitex服务端通过容器化部署,通过域名+端口暴露出来一个入口(入口大概是这样:a.b.c:8088),单独在postman打过去调用是没问题的,此时在客户端通过client.WithHostPorts(addrs...)初始化的,发起GRPC调用就会报以下的错误 ``` Not Found: HTTP status code 404; transport: missing content-type field ``` 请问初始化客户端时,需要调整什么参数,才能顺利打到服务端,目前是这些参数 ``` client.WithTransportProtocol(transport.GRPC), client.WithRPCTimeout(time.Second * 3), client.WithConnectTimeout(time.Millisecond * 500), client.WithFailureRetry(retry.NewFailurePolicy()), client.WithErrorHandler(ClientErrorHandler), client.WithGRPCKeepaliveParams(grpc.ClientKeepalive{ //...