Slightly further, I accidentally used the wrong AP...
# sdk-rust
a
Slightly further, I accidentally used the wrong API key in the request and getting back a not very helpful twirp error
Copy code
status: Internal, message: "twirp error: failed to execute the request: error decoding response body: expected value at line 1 column 1", details: [], metadata: MetadataMap { headers: {"content-type": "a
pplication/grpc", "date": "Thu, 16 Nov 2023 20:06:22 GMT", "content-length": "0"} }
And the server has this
Copy code
WARN    livekit service/auth.go:84      error handling request  {"status": 401, "error": "invalid API key: dev"}
Is it not wrapped and pass down stream or I'm doing something wrong. Code is as followed:
Copy code
let create_room_result = client
            .create_room(
                Uuid::new_v4().to_string().as_str(),
                CreateRoomOptions::default(),
            )
            .await;        
let room = match create_room_result {
            Ok(room) => room,
            Err(err) => return Err(Status::internal(err.to_string())),
        };