{"record":{"id":"5b2b76d974faf02e","repo":"jdx/mise","slug":"tokio-runtime-thread-panicked","errorCode":null,"errorMessage":"tokio runtime thread panicked","messagePattern":"tokio runtime thread panicked","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/github/oauth.rs","lineNumber":629,"sourceCode":"fn default_poll_interval() -> u64 {\n    5\n}\n\nfn block_on<F>(future: F) -> F::Output\nwhere\n    F: std::future::Future + Send + 'static,\n    F::Output: Send + 'static,\n{\n    if tokio::runtime::Handle::try_current().is_ok() {\n        std::thread::spawn(move || {\n            tokio::runtime::Builder::new_current_thread()\n                .enable_all()\n                .build()\n                .expect(\"failed to build tokio runtime\")\n                .block_on(future)\n        })\n        .join()\n        .expect(\"tokio runtime thread panicked\")\n    } else {\n        tokio::runtime::Builder::new_current_thread()\n            .enable_all()\n            .build()\n            .expect(\"failed to build tokio runtime\")\n            .block_on(future)\n    }\n}\n\n#[cfg(test)]\npub(crate) mod test_support {\n    use super::*;\n\n    pub(crate) fn cache_key(host: &str, client_id: &str, scopes: &str) -> String {\n        super::cache_key(host, client_id, scopes)\n    }\n\n    pub(crate) fn set_cache_path(path: PathBuf) {","sourceCodeStart":611,"sourceCodeEnd":647,"githubUrl":"https://github.com/jdx/mise/blob/6f52dcdf99e282ef7a7db68c81301fa4618d0f79/src/github/oauth.rs#L611-L647","documentation":"Error \"tokio runtime thread panicked\" thrown in jdx/mise.","triggerScenarios":"Thrown at src/github/oauth.rs:629 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the GitHub device-flow login; a background thread panicked. If it persists, report a mise bug with the panic output."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6f52dcdf99e282ef7a7db68c81301fa4618d0f79","analyzedAt":"2026-08-22T10:14:23.840Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}