Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: All requests fail with default format: NotSupported #79

Closed
msiemens opened this issue Mar 28, 2016 · 2 comments
Closed

Windows: All requests fail with default format: NotSupported #79

msiemens opened this issue Mar 28, 2016 · 2 comments

Comments

@msiemens
Copy link

When using the logging middleware, all requests fail with the following log messages:

2016-03-28T21:44:08+07:00 ERROR iron::iron - Error handling:
Request {
    url: Url { scheme: "http", host: Domain("localhost"), port: 3000, path: ["12345"], username: None, password: None, query: None, fragment: None }
    method: Get
    remote_addr: V6([::1]:59540)
    local_addr: V6([::1]:3000)
}
Error was: Error { repr: Custom(Custom { kind: Other, error: NotSupported }) }

The NotSupported seems to come from term indicating that the used terminal doesn't support the requested term capabilities.

The relevant source code used:

let mut chain = Chain::new(router);

let (logger_before, logger_after) = Logger::new(None);
chain.link_before(logger_before);
chain.link_after(logger_after);

Chaning the format string to not use colors solves the problem.

Rust: rustc 1.9.0-nightly (d5a91e695 2016-03-26)
Iron: 0.3.0
Logger: 0.0.3
OS: Windows 7 SP 1
Shell: zsh
Env: msys2
I also used ConEmu, if that's relevant.

@jwilm
Copy link

jwilm commented May 15, 2016

Ran into this as well. Thanks @msiemens for figuring out the problem.

jwilm added a commit to jwilm/racerd that referenced this issue May 15, 2016
racerd was not running on windows after upgrading iron due to a change
in the logging crate. See iron/logger#79 for
more info.
@tomprince
Copy link
Contributor

This looks like it no longer relevant, since this logs via the log crate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants