Documentation of LiveKit - Wrong method in the suggested endpoint testing procedure of MatrixRTC services #1713

Closed
opened 2026-04-28 21:35:50 +00:00 by pocitas · 0 comments

https://continuwuity.org/calls/livekit#testing:

... fetch the discovery endpoints for MatrixRTC services

curl -X POST -H "Authorization: Bearer <session-access-token>" \
  https://matrix.example.com/_matrix/client/unstable/org.matrix.msc4143/rtc/transports

But the endpoint accepts GET requests only:
https://github.com/continuwuity/continuwuity/blob/main/src/api/client/well_known.rs

/// # `GET /_matrix/client/v1/rtc/transports`
/// # `GET /_matrix/client/unstable/org.matrix.msc4143/rtc/transports`
///
/// Returns the list of MatrixRTC foci (transports) configured for this
/// homeserver, implementing MSC4143.
pub(crate) async fn get_rtc_transports(
	State(services): State<crate::State>,
	_body: Ruma<ruma::api::client::discovery::get_rtc_transports::Request>,
) -> Result<ruma::api::client::discovery::get_rtc_transports::Response> {
	Ok(ruma::api::client::discovery::get_rtc_transports::Response::new(
		services
			.config
			.matrix_rtc
			.effective_foci(&services.config.well_known.rtc_focus_server_urls)
			.to_vec(),
	))
}
[https://continuwuity.org/calls/livekit#testing](https://continuwuity.org/calls/livekit#testing): > _... fetch the discovery endpoints for MatrixRTC services_ > ``` > curl -X POST -H "Authorization: Bearer <session-access-token>" \ > https://matrix.example.com/_matrix/client/unstable/org.matrix.msc4143/rtc/transports > ``` > But the endpoint accepts GET requests only: [https://github.com/continuwuity/continuwuity/blob/main/src/api/client/well_known.rs](https://github.com/continuwuity/continuwuity/blob/main/src/api/client/well_known.rs) ``` /// # `GET /_matrix/client/v1/rtc/transports` /// # `GET /_matrix/client/unstable/org.matrix.msc4143/rtc/transports` /// /// Returns the list of MatrixRTC foci (transports) configured for this /// homeserver, implementing MSC4143. pub(crate) async fn get_rtc_transports( State(services): State<crate::State>, _body: Ruma<ruma::api::client::discovery::get_rtc_transports::Request>, ) -> Result<ruma::api::client::discovery::get_rtc_transports::Response> { Ok(ruma::api::client::discovery::get_rtc_transports::Response::new( services .config .matrix_rtc .effective_foci(&services.config.well_known.rtc_focus_server_urls) .to_vec(), )) } ```
Jade closed this issue 2026-05-13 23:10:34 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
continuwuation/continuwuity#1713
No description provided.