You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NIOCore.SocketAddressError.unknown from configuration
Vapor version
4.92.4
Operating system and version
Ubuntu Linux 22.04
Swift version
Swift 5.9
Steps to reproduce
We have a setup with docker-compose where redis is not mandatory or might start after vapor app, so network alias redis can't be resolved on time of vapor app starts, so that:
let configuration = try RedisConfiguration(url: "redis://redis:6379")
Describe the issue
NIOCore.SocketAddressError.unknown from configuration
Vapor version
4.92.4
Operating system and version
Ubuntu Linux 22.04
Swift version
Swift 5.9
Steps to reproduce
We have a setup with docker-compose where redis is not mandatory or might start after vapor app, so network alias
redis
can't be resolved on time of vapor app starts, so that:will fail with an error:
which is happening here:
redis/Sources/Redis/RedisConfiguration.swift
Line 86 in 44e5774
but actually here: https://github.com/apple/swift-nio/blob/1e2b3e34afee7d68d99d982b72f9a17a40624c66/Sources/NIOCore/SocketAddresses.swift#L490
so, no configuration can be set and due to internal logic around
boot()
it's not possible to configure Redis later on, onceredis
name can be resolvedOutcome
No response
Additional notes
No response
The text was updated successfully, but these errors were encountered: