Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Requests fail with NotSupported, depending on $TERM #45

Open
Kha opened this issue May 28, 2016 · 5 comments · May be fixed by #63
Open

Requests fail with NotSupported, depending on $TERM #45

Kha opened this issue May 28, 2016 · 5 comments · May be fixed by #63

Comments

@Kha
Copy link

Kha commented May 28, 2016

I can reproduce iron/logger#79, even with 007aa62:

$ TERM=dumb cargo test
     Running target/debug/lib-9e020053bfe738e2

running 9 tests
ERROR:iron::iron: Error handling:
Request {
    url: Url { scheme: "http", host: Ipv4(127.0.0.1), port: 0, path: ["find_definition"], username: None, password: None, query: None, fragment: None }
    method: Post
    remote_addr: V4(127.0.0.1:37440)
    local_addr: V4(127.0.0.1:0)
}
Error was: Error { repr: Custom(Custom { kind: Other, error: NotSupported }) }
ERROR:iron::iron: Error handling:
Request {
    url: Url { scheme: "http", host: Ipv4(127.0.0.1), port: 0, path: ["find_definition"], username: None, password: None, query: None, fragment: None }
    method: Post
    remote_addr: V4(127.0.0.1:49330)
    local_addr: V4(127.0.0.1:0)
}
Error was: Error { repr: Custom(Custom { kind: Other, error: NotSupported }) }
POSTPOSTtest http::find_definition ... FAILED
test http::find_definition_multiple_dirty_buffers ... FAILED
ERROR:iron::iron: Error handling:
Request {
    url: Url { scheme: "http", host: Ipv4(127.0.0.1), port: 0, path: ["ping"], username: None, password: None, query: None, fragment: None }
    method: Get
    remote_addr: V4(127.0.0.1:36404)
    local_addr: V4(127.0.0.1:0)
}
Error was: Error { repr: Custom(Custom { kind: Other, error: NotSupported }) }
GETtest http::ping_pong ... FAILED
ERROR:iron::iron: Error handling:
Request {
    url: Url { scheme: "http", host: Ipv4(127.0.0.1), port: 0, path: ["ping"], username: None, password: None, query: None, fragment: None }
    method: Get
    remote_addr: V4(127.0.0.1:33728)
    local_addr: V4(127.0.0.1:0)
}
Error was: Error { repr: Custom(Custom { kind: Other, error: NotSupported }) }
GETtest http::ping_pong_hmac_with_correct_secret ... FAILED
test panics_when_invalid_secret_given ... ok
test util::http::server_url_builder ... ok
ERROR:iron::iron: Error handling:
Request {
    url: Url { scheme: "http", host: Ipv4(127.0.0.1), port: 0, path: ["ping"], username: None, password: None, query: None, fragment: None }
    method: Get
    remote_addr: V4(127.0.0.1:45214)
    local_addr: V4(127.0.0.1:0)
}
Error was: Error { repr: Custom(Custom { kind: Other, error: NotSupported }) }
GETtest http::ping_pong_hmac_wrong_secret ... FAILED
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: NotPresent', ../src/libcore/result.rs:688
test http::list_path_completions_std_library ... FAILED
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: NotPresent', ../src/libcore/result.rs:688
test http::find_definition_in_std_library ... FAILED

failures:

---- http::find_definition stdout ----
    url: http://127.0.0.1:40652/find_definition
thread 'http::find_definition' panicked at 'called `Option::unwrap()` on a `None` value', ../src/libcore/option.rs:330

---- http::find_definition_multiple_dirty_buffers stdout ----
    url: http://127.0.0.1:38420/find_definition
thread 'http::find_definition_multiple_dirty_buffers' panicked at 'called `Option::unwrap()` on a `None` value', ../src/libcore/option.rs:330

---- http::ping_pong stdout ----
    url: http://127.0.0.1:33567/ping
thread 'http::ping_pong' panicked at 'called `Option::unwrap()` on a `None` value', ../src/libcore/option.rs:330

---- http::ping_pong_hmac_with_correct_secret stdout ----
    thread 'http::ping_pong_hmac_with_correct_secret' panicked at 'assertion failed: `(left == right)` (left: `InternalServerError`, right: `Ok`)', tests/lib.rs:248

---- http::ping_pong_hmac_wrong_secret stdout ----
    thread 'http::ping_pong_hmac_wrong_secret' panicked at 'assertion failed: `(left == right)` (left: `InternalServerError`, right: `Forbidden`)', tests/lib.rs:279

---- http::list_path_completions_std_library stdout ----
    url: http://127.0.0.1:36302/list_completions
thread 'http::list_path_completions_std_library' panicked at 'called `Option::unwrap()` on a `None` value', ../src/libcore/option.rs:330

---- http::find_definition_in_std_library stdout ----
    url: http://127.0.0.1:39332/find_definition
thread 'http::find_definition_in_std_library' panicked at 'called `Option::unwrap()` on a `None` value', ../src/libcore/option.rs:330


failures:
    http::find_definition
    http::find_definition_in_std_library
    http::find_definition_multiple_dirty_buffers
    http::list_path_completions_std_library
    http::ping_pong
    http::ping_pong_hmac_with_correct_secret
    http::ping_pong_hmac_wrong_secret

test result: FAILED. 2 passed; 7 failed; 0 ignored; 0 measured
@jwilm
Copy link
Owner

jwilm commented May 28, 2016

ugh. That library has a lot of problems for something that writes to stdout. Probably time to write something simpler around println!.

Thanks for the report!

jwilm added a commit that referenced this issue Aug 23, 2016
@jwilm jwilm closed this as completed Aug 23, 2016
@Kha
Copy link
Author

Kha commented Sep 2, 2016

I feel like I'm doing something wrong (if it wasn't a single cargo test), because I can still reproduce this on 4b8d3c7 😆 .

@jwilm
Copy link
Owner

jwilm commented Sep 2, 2016

What! Ugh. Need to drop that dependency.

@jwilm jwilm reopened this Sep 2, 2016
rroohhh added a commit to rroohhh/racerd that referenced this issue Jan 21, 2017
@rroohhh rroohhh linked a pull request Jan 21, 2017 that will close this issue
@micbou
Copy link
Contributor

micbou commented Sep 30, 2017

@jwilm Do you plan to drop the logger dependency or update it as in PR #63? Some of our users are experiencing the issue. See ycm-core/ycmd#849.

@msanders
Copy link

^ I'm running into this issue as well when using racerd with emacs-ycmd. Updating the logger dependency as in PR #63 seems to fix it.

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

Successfully merging a pull request may close this issue.

4 participants