Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Websocket client does not reconnect #34

@joelreymont

Description

@joelreymont
[2020-05-30T07:19:35Z DEBUG tungstenite::handshake::client] Client handshake done.
[2020-05-30T07:19:35Z INFO  stegos_api::client] Reconnected to websocket, trying to receive again.
[2020-05-30T07:19:35Z DEBUG fetcher] Skipping notification Inner(Reconnect)
[2020-05-30T07:19:53Z INFO  stegos_api::client] Error on receiving message to websocket, reconnecting
[2020-05-30T07:19:53Z DEBUG stegos_api::client] Websocket::receive error = Protocol("Connection reset without closing handshake")
    
       0: backtrace::backtrace::libunwind::trace
                 at /Users/joelr/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.48/src/backtrace/libunwind.rs:86
          backtrace::backtrace::trace_unsynchronized
                 at /Users/joelr/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.48/src/backtrace/mod.rs:66
       1: backtrace::backtrace::trace
                 at /Users/joelr/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.48/src/backtrace/mod.rs:53
       2: backtrace::capture::Backtrace::create
                 at /Users/joelr/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.48/src/capture.rs:164
       3: backtrace::capture::Backtrace::new_unresolved
                 at /Users/joelr/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.48/src/capture.rs:158
       4: failure::backtrace::internal::InternalBacktrace::new
                 at /Users/joelr/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.8/src/backtrace/internal.rs:46
       5: failure::backtrace::Backtrace::new
                 at /Users/joelr/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.8/src/backtrace/mod.rs:121
       6: <failure::error::error_impl::ErrorImpl as core::convert::From<F>>::from
                 at /Users/joelr/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.8/src/error/error_impl.rs:19
       7: <failure::error::Error as core::convert::From<F>>::from
                 at /Users/joelr/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.8/src/error/mod.rs:36
       8: stegos_api::client::WebSocketClient::receive_raw::{{closure}}
                 at /Users/joelr/.cargo/git/checkouts/stegos-1c716e9139d5e380/3e02c11/api/src/client.rs:144
       9: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
                 at /Users/joelr/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libcore/future/mod.rs:69
      10: stegos_api::client::WebSocketClient::receive::{{closure}}
                 at /Users/joelr/.cargo/git/checkouts/stegos-1c716e9139d5e380/3e02c11/api/src/client.rs:152
      11: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
                 at /Users/joelr/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libcore/future/mod.rs:69
      12: stegos_api::client::WebSocketClient::notification::{{closure}}
                 at /Users/joelr/.cargo/git/checkouts/stegos-1c716e9139d5e380/3e02c11/api/src/client.rs:112
      13: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
                 at /Users/joelr/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libcore/future/mod.rs:69
      14: fetcher::Service::run::{{closure}}
                 at backend/src/bin/fetcher/main.rs:96
      15: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
                 at /Users/joelr/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libcore/future/mod.rs:69
      16: fetcher::main::{{closure}}
                 at backend/src/bin/fetcher/main.rs:58
      17: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
                 at /Users/joelr/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libcore/future/mod.rs:69
      18: tokio::runtime::enter::Enter::block_on::{{closure}}
                 at /Users/joelr/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/enter.rs:163
      19: tokio::coop::with_budget::{{closure}}
                 at /Users/joelr/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/coop.rs:127
      20: std::thread::local::LocalKey<T>::try_with
                 at /Users/joelr/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libstd/thread/local.rs:263
      21: std::thread::local::LocalKey<T>::with
                 at /Users/joelr/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libstd/thread/local.rs:239
      22: tokio::coop::with_budget
                 at /Users/joelr/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/coop.rs:120
          tokio::coop::budget
                 at /Users/joelr/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/coop.rs:96
          tokio::runtime::enter::Enter::block_on
                 at /Users/joelr/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/enter.rs:163
      23: tokio::runtime::thread_pool::ThreadPool::block_on
                 at /Users/joelr/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/thread_pool/mod.rs:82
      24: tokio::runtime::Runtime::block_on::{{closure}}
                 at /Users/joelr/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/mod.rs:446
      25: tokio::runtime::context::enter
                 at /Users/joelr/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/context.rs:72
      26: tokio::runtime::handle::Handle::enter
                 at /Users/joelr/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/handle.rs:76
      27: tokio::runtime::Runtime::block_on
                 at /Users/joelr/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/mod.rs:441
      28: fetcher::main
                 at backend/src/bin/fetcher/main.rs:52
      29: std::rt::lang_start::{{closure}}
                 at /Users/joelr/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libstd/rt.rs:67
      30: std::rt::lang_start_internal::{{closure}}
                 at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8/src/libstd/rt.rs:52
          std::panicking::try::do_call
                 at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8/src/libstd/panicking.rs:297
          std::panicking::try
                 at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8/src/libstd/panicking.rs:274
          std::panic::catch_unwind
                 at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8/src/libstd/panic.rs:394
          std::rt::lang_start_internal
                 at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8/src/libstd/rt.rs:51
      31: std::rt::lang_start
                 at /Users/joelr/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libstd/rt.rs:67
      32: _main
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions