-
-
Save anonymous/70fc75b5327f8e30a9a2 to your computer and use it in GitHub Desktop.
mojolicious 5.57 - $mojo get localhost - error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OS: OpenBSD 5.6 | |
Mojolicious: 5.57 | |
I get the following error when doing a | |
$ mojo get localhost | |
or | |
$ mojo get 127.0.0.1 | |
$ MOJO_IOLOOP_DEBUG=1 MOJO_USERAGENT_DEBUG=1 MOJO_EVENTEMITTER_DEBUG=1 mojo get localhost | |
-- Reactor initialized (Mojo::Reactor::EV) | |
-- Blocking request (http://localhost) | |
-- Emit start in Mojo::UserAgent (1) | |
-- Connect (http:localhost:80) | |
-- Emit error in Mojo::IOLoop::Client (1) | |
-- Emit error in Mojo::Reactor::EV (1) | |
Mojo::Reactor::EV: Write failed: Can't call method "on" on an undefined value at /usr/local/../Mojo/UserAgent.pm line 122. | |
-- Emit finish in Mojo::Message::Response (0) | |
-- Emit finish in Mojo::Transaction::HTTP (0) | |
Every other hostname (even non resolvable) work...or at least quits | |
with the correct error message | |
$ MOJO_IOLOOP_DEBUG=1 MOJO_USERAGENT_DEBUG=1 MOJO_EVENTEMITTER_DEBUG=1 mojo get myhostname | |
-- Reactor initialized (Mojo::Reactor::EV) | |
-- Blocking request (http://myhostname) | |
-- Emit start in Mojo::UserAgent (1) | |
-- Connect (http:myhostname:80) | |
-- Emit error in Mojo::IOLoop::Client (1) | |
-- Emit finish in Mojo::Message::Response (0) | |
-- Emit finish in Mojo::Transaction::HTTP (0) | |
Problem loading URL "http://myhostname": Can't connect: no address associated with name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment