REDIS环境切换后导致CAP报错

解决:确认redis服务是否启动,如6379 和 63790 端口, 以实际配置为准


2024-11-03 11:05:35 EROR DotNetCore.CAP.Processor.Dispatcher An exception occurred while publishing a message, reason:Failed : . message id:2415738879202304028 DotNetCore.CAP.Internal.PublisherSentFailedException: It was not possible to connect to the redis server(s). Error connecting right now. To allow this multiplexer to continue retrying until it's able to connect, use abortConnect=false in your connection string or AbortOnConnectFail=false; in your code.
 ---> StackExchange.Redis.RedisConnectionException: It was not possible to connect to the redis server(s). Error connecting right now. To allow this multiplexer to continue retrying until it's able to connect, use abortConnect=false in your connection string or AbortOnConnectFail=false; in your code.
   at StackExchange.Redis.ConnectionMultiplexer.ConnectImplAsync(ConfigurationOptions configuration, TextWriter writer, Nullable`1 serverType) in /_/src/StackExchange.Redis/ConnectionMultiplexer.cs:line 613
   at DotNetCore.CAP.RedisStreams.AsyncLazyRedisConnection.ConnectAsync(CapRedisOptions redisOptions, ILogger`1 logger)
   at DotNetCore.CAP.RedisStreams.AsyncLazyRedisConnection.get_CreatedConnection()
   at DotNetCore.CAP.RedisStreams.RedisConnectionPool.ConnectAsync()
   at DotNetCore.CAP.RedisStreams.RedisStreamManager.ConnectAsync()
   at DotNetCore.CAP.RedisStreams.RedisStreamManager.PublishAsync(String stream, NameValueEntry[] message)
   at DotNetCore.CAP.RedisStreams.RedisTransport.SendAsync(TransportMessage message)
   --- End of inner exception stack trace ---

文档更新时间: 2024-11-03 11:24   作者:admin