Skip to content

Commit 0a5289e

Browse files
authored
Correct usage is .content for bytes, not .data()
1 parent 84cff3f commit 0a5289e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

livekit-api/livekit/api/twirp_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def sync_request(
116116
serialized_data = data.SerializeToString()
117117
resp = requests.post(url, headers=headers, data=serialized_data)
118118
if resp.status == 200:
119-
return response_class.FromString(resp.data())
119+
return response_class.FromString(resp.content)
120120
else:
121121
# when we have an error, Twirp always encode it in json
122122
error_data = resp.json()

0 commit comments

Comments
 (0)