{"record":{"id":"3262fbdc01f3d3f7","repo":"clockworklabs/SpacetimeDB","slug":"unable-to-parse-supplied-uri","errorCode":null,"errorMessage":"Unable to parse supplied URI","messagePattern":"Unable to parse supplied URI","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"sdks/rust/src/db_connection.rs","lineNumber":1061,"sourceCode":"        let pending_mutations_recv = Arc::new(StdMutex::new(pending_mutations_recv));\n\n        let inner_ctx = build_db_ctx_inner(self.on_connect, self.on_connect_error, self.on_disconnect);\n        Ok(build_db_ctx(\n            inner_ctx,\n            raw_msg_send,\n            parsed_recv_chan,\n            pending_mutations_send,\n            pending_mutations_recv,\n            connection_id_override,\n            extra_logging,\n        ))\n    }\n\n    /// Set the URI of the SpacetimeDB host which is running the remote database.\n    ///\n    /// The URI must have either no scheme or one of the schemes `http`, `https`, `ws` or `wss`.\n    pub fn with_uri<E: std::fmt::Debug>(mut self, uri: impl TryInto<Uri, Error = E>) -> Self {\n        let uri = uri.try_into().expect(\"Unable to parse supplied URI\");\n        self.uri = Some(uri);\n        self\n    }\n\n    /// Set the name or identity of the remote database to connect to.\n    pub fn with_database_name(mut self, name_or_identity: impl Into<String>) -> Self {\n        self.database_name = Some(name_or_identity.into());\n        self\n    }\n\n    /// Supply a token with which to authenticate with the remote database.\n    ///\n    /// `token` should be an OpenID Connect compliant JSON Web Token.\n    ///\n    /// If this method is not invoked, or `None` is supplied,\n    /// the SpacetimeDB host will generate a new anonymous `Identity`.\n    ///\n    /// If the token is rejected before a connection context is created, [`Self::build`]","sourceCodeStart":1043,"sourceCodeEnd":1079,"githubUrl":"https://github.com/clockworklabs/SpacetimeDB/blob/524b4487d949b61a07d4f39c862d1290259dfd20/sdks/rust/src/db_connection.rs#L1043-L1079","documentation":"Error \"Unable to parse supplied URI\" thrown in clockworklabs/SpacetimeDB.","triggerScenarios":"Thrown at sdks/rust/src/db_connection.rs:1061 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"524b4487d949b61a07d4f39c862d1290259dfd20","analyzedAt":"2026-08-16T23:58:54.611Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}