clockworklabs/SpacetimeDB · error

Unable to parse supplied URI

Error message

Unable to parse supplied URI

What it means

Error "Unable to parse supplied URI" thrown in clockworklabs/SpacetimeDB.

Source

Thrown at sdks/rust/src/db_connection.rs:1061

        let pending_mutations_recv = Arc::new(StdMutex::new(pending_mutations_recv));

        let inner_ctx = build_db_ctx_inner(self.on_connect, self.on_connect_error, self.on_disconnect);
        Ok(build_db_ctx(
            inner_ctx,
            raw_msg_send,
            parsed_recv_chan,
            pending_mutations_send,
            pending_mutations_recv,
            connection_id_override,
            extra_logging,
        ))
    }

    /// Set the URI of the SpacetimeDB host which is running the remote database.
    ///
    /// The URI must have either no scheme or one of the schemes `http`, `https`, `ws` or `wss`.
    pub fn with_uri<E: std::fmt::Debug>(mut self, uri: impl TryInto<Uri, Error = E>) -> Self {
        let uri = uri.try_into().expect("Unable to parse supplied URI");
        self.uri = Some(uri);
        self
    }

    /// Set the name or identity of the remote database to connect to.
    pub fn with_database_name(mut self, name_or_identity: impl Into<String>) -> Self {
        self.database_name = Some(name_or_identity.into());
        self
    }

    /// Supply a token with which to authenticate with the remote database.
    ///
    /// `token` should be an OpenID Connect compliant JSON Web Token.
    ///
    /// If this method is not invoked, or `None` is supplied,
    /// the SpacetimeDB host will generate a new anonymous `Identity`.
    ///
    /// If the token is rejected before a connection context is created, [`Self::build`]

View on GitHub (pinned to 524b4487d9)

When it happens

Trigger: Thrown at sdks/rust/src/db_connection.rs:1061 when the library encounters an invalid state.

Common situations: See trigger scenarios.

Understand the failure class


AI-assisted analysis of clockworklabs/SpacetimeDB@524b4487d9 (2026-08-16). Data as JSON: /api/errors/3262fbdc01f3d3f7. Report an issue: GitHub.