Skip to content

Request: Disable Discord RPC when Discord is not running or installed, plus disable replaycollector feature #196

@HikariCalyx

Description

@HikariCalyx
  1. If Discord is not installed or running on PC for whatever reason (e.g. Discord is blocked in specific country or region), the log will be spammed by Discord RPC error:
[2025-10-08T11:55:51Z WARN  tango::discord] did not open discord RPC client: could not connect
    
    Stack backtrace:
       0: std::backtrace::Backtrace::create
       1: std::backtrace::Backtrace::capture
       2: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from
       3: tango::discord::Client::new::{{closure}}
       4: tokio::runtime::task::core::Core<T,S>::poll
       5: tokio::runtime::task::harness::Harness<T,S>::poll
       6: tokio::runtime::scheduler::multi_thread::worker::Context::run_task
       7: tokio::runtime::scheduler::multi_thread::worker::Context::run
       8: tokio::runtime::context::scoped::Scoped<T>::set
       9: tokio::runtime::context::runtime::enter_runtime
      10: tokio::runtime::scheduler::multi_thread::worker::run
      11: tokio::runtime::task::core::Core<T,S>::poll
      12: tokio::runtime::task::harness::Harness<T,S>::poll
      13: tokio::runtime::blocking::pool::Inner::run
      14: std::sys::backtrace::__rust_begin_short_backtrace
      15: core::ops::function::FnOnce::call_once{{vtable.shim}}
      16: std::sys::pal::windows::thread::Thread::new::thread_start
      17: <unknown>
      18: <unknown>
  1. Current replay collector server ( replaycollector.tango.n1gp.net ) used by Tango cannot be connected due to DNS resolving failure, and crashed Tango.
[2025-10-08T12:07:58Z ERROR tango::session] failed to submit replay: error sending request for url (https://replaycollector.tango.n1gp.net/): error trying to connect: dns error: No such host is known. (os error 11001)
    
    Caused by:
        0: error trying to connect: dns error: No such host is known. (os error 11001)
        1: dns error: No such host is known. (os error 11001)
        2: No such host is known. (os error 11001)
    
    Stack backtrace:
       0: std::backtrace::Backtrace::create
       1: std::backtrace::Backtrace::capture
       2: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from
       3: tango::session::Session::new_pvp::{{closure}}::{{closure}}
       4: tokio::runtime::task::core::Core<T,S>::poll
       5: tokio::runtime::task::harness::Harness<T,S>::poll
       6: tokio::runtime::scheduler::multi_thread::worker::Context::run_task
       7: tokio::runtime::scheduler::multi_thread::worker::Context::run
       8: tokio::runtime::context::scoped::Scoped<T>::set
       9: tokio::runtime::context::runtime::enter_runtime
      10: tokio::runtime::scheduler::multi_thread::worker::run
      11: tokio::runtime::task::core::Core<T,S>::poll
      12: tokio::runtime::task::harness::Harness<T,S>::poll
      13: tokio::runtime::blocking::pool::Inner::run
      14: std::sys::backtrace::__rust_begin_short_backtrace
      15: core::ops::function::FnOnce::call_once{{vtable.shim}}
      16: std::sys::pal::windows::thread::Thread::new::thread_start
      17: <unknown>
      18: <unknown>

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