nacos icon indicating copy to clipboard operation
nacos copied to clipboard

不支持用户设置超时时间

Open xiaomaguohe001 opened this issue 1 year ago • 2 comments

客户端2.4.3版本中的com.alibaba.nacos.client.config.impl.ConfigHttpClientManager类当中的READ_TIME_OUT_MILLIS变量不支持自定义设置,因为有时候默认的3秒并不够,比如,nacos集群首次启动,客户端应用服务启动时进行第一次登录认证 3秒一般不够用 比如nacos服务端的core-auth.log日志: 2024-10-16 13:59:59.377 [nacos] [nacos-grpc-executor-12] DEBUG [com.alibaba.nacos.core.auth] -auth start, request: ConfigPublishRequest2024-10-16 14:00:02.007 [nacos] [nacos-grpc-executor-12] DEBUG [com.alibaba.nacos.core.auth] -access denied, request: ConfigPublishRequest, reason: user not found! 2024-10-16 14:26:21.014 [nacos] [nacos-grpc-executor-4] DEBUG [com.alibaba.nacos.core.auth] -auth start, request: ConfigBatchListenRequest 2024-10-16 14:26:21.224 [nacos] [nacos-grpc-executor-4] DEBUG [com.alibaba.nacos.core.auth] -access denied, request: ConfigBatchListenRequest, reason: user not found! 2024-10-16 14:26:26.396 [nacos] [nacos-grpc-executor-6] DEBUG [com.alibaba.nacos.core.auth] -auth start, request: ConfigBatchListenRequest 2024-10-16 14:26:26.470 [nacos] [nacos-grpc-executor-6] DEBUG [com.alibaba.nacos.core.auth] -access denied, request: ConfigBatchListenRequest, reason: user not found! 2024-10-16 14:26:29.775 [nacos] [nacos-grpc-executor-5] DEBUG [com.alibaba.nacos.core.auth] -auth start, request: ConfigPublishRequest 2024-10-16 14:26:29.777 [nacos] [nacos-grpc-executor-5] DEBUG [com.alibaba.nacos.core.auth] -access denied, request: ConfigPublishRequest, reason: user not found! 2024-10-16 14:26:31.598 [nacos] [nacos-grpc-executor-9] DEBUG [com.alibaba.nacos.core.auth] -auth start, request: ConfigBatchListenRequest

xiaomaguohe001 avatar Oct 16 '24 07:10 xiaomaguohe001

@ i will solve it , please assign to me @

KiteSoar avatar Oct 16 '24 10:10 KiteSoar

这个看上去不太像READ_TIME_OUT_MILLIS 时间不够导致的, reason: user not found 这个报错像是用户Token失效了返回的提示?

lucky8987 avatar Oct 19 '24 13:10 lucky8987

这个看上去不太像READ_TIME_OUT_MILLIS 时间不够导致的, reason: user not found 这个报错像是用户Token失效了返回的提示?

上述反馈的说法是应为READ_TIME_OUT_MILLIS不够, 导致login接口首次调用失败,没获取到用户Token。

nacos-client只有首次login时同步阻塞的, 如果login失败就会进行其他的初始化操作,而这个时间段内的请求会因为缺少token而报错。

KomachiSion avatar Oct 21 '24 02:10 KomachiSion