Happening with both resolving “localhost” to connect Redis and also with my Imgur API endpoint requests (api.imgur.com). Most of the time it works, sometimes it fails to resolve and breaks the action.
Error 500 at GET /canvas
Socket::Addrinfo::Error: Hostname lookup for localhost failed: System error
See raw message
Redis::Connection#initialize<String, Int32, (String | Nil), (OpenSSL::SSL::Context::Client | Nil), (Time::Span | Nil), (Time::Span | Nil), (Time::Span | Nil)>:Redis::SocketWrapper
No code available.
??? Redis::Connection#initialize<String, Int32, (String | Nil), (OpenSSL::SSL::Context::Client | Nil), (Time::Span | Nil), (Time::Span | Nil), (Time::Span | Nil)>:Redis::SocketWrapper
??? Redis::Connection::new<String, Int32, (String | Nil), (OpenSSL::SSL::Context::Client | Nil), (Time::Span | Nil), (Time::Span | Nil), (Time::Span | Nil)>:Redis::Connection
??? Redis#connect:(Array(Redis::RedisValue) | Int64 | Redis::Future | String | Nil)
??? Redis#initialize:(Array(Redis::RedisValue) | Int64 | Redis::Future | String | Nil)
??? Redis::new:Redis
??? LivepixelController#canvas:String
??? ~procProc(HTTP::Server::Context, Nil)
??? Amber::Route#call<HTTP::Server::Context>:Nil
??? HTTP::Server::Context#process_request:Nil
??? Amber::Pipe::Controller#call<HTTP::Server::Context>:Nil
??? Amber::Pipe::CSRF
??? Amber::Pipe::CSRF#call<HTTP::Server::Context>:(Array(Log::Entry) | Bool | Channel(Tuple(Log::Entry, Log::Backend+)) | HTTP::Headers | HTTP::Server::Context | IO+ | Int32 | Int64 | Proc(IO+, Nil) | Nil)
??? Amber::Pipe::Flash
??? Amber::Pipe::Flash#call<HTTP::Server::Context>:(Array(Log::Entry) | Bool | Channel(Tuple(Log::Entry, Log::Backend+)) | HTTP::Headers | HTTP::Server::Context | IO+ | Int32 | Int64 | Proc(IO+, Nil) | Nil)
??? Amber::Pipe::Session
??? Amber::Pipe::Session#call<HTTP::Server::Context>:(HTTP::Headers | Nil)
??? Amber::Pipe::Logger
??? Amber::Pipe::Logger#call<HTTP::Server::Context>:HTTP::Server::Context
??? Amber::Pipe::Error
??? Amber::Pipe::Error#call<HTTP::Server::Context>:(Array(Log::Entry) | Bool | Channel(Tuple(Log::Entry, Log::Backend+)) | HTTP::Headers | HTTP::Server::Context | IO+ | Int32 | Int64 | Proc(IO+, Nil) | Nil)
??? Citrine::I18n::Handler
??? Citrine::I18n::Handler#call<HTTP::Server::Context>:(Array(Log::Entry) | Bool | Channel(Tuple(Log::Entry, Log::Backend+)) | HTTP::Headers | HTTP::Server::Context | IO+ | Int32 | Int64 | Proc(IO+, Nil) | Nil)
??? Amber::Pipe::Pipeline#call<HTTP::Server::Context>:(Array(Log::Entry) | Bool | Channel(Tuple(Log::Entry, Log::Backend+)) | HTTP::Headers | HTTP::Server::Context | IO+ | Int32 | Int64 | Proc(IO+, Nil) | Nil)
??? HTTP::Server::RequestProcessor#process<IO+, IO+>:Nil
??? HTTP::Server#handle_client<IO+>:Nil
??? ~procProc(Nil)
??? Fiber#run:(IO::FileDescriptor | Nil)
??? ~proc2Proc(Fiber, (IO::FileDescriptor | Nil))
??? ???
Params
room
""
Request info
Headers
OS can resolve those domain names fine. Happens on dev and production in Ubuntu 20.04. First happened when I ported the Imgur Uploader for my canvas drawing app, I would notice that the upload would fail sometimes due to DNS lookup issues.