This message was deleted.
# helpdesk
s
This message was deleted.
k
If i change the particiapnt permission using the server SDK I get 500 error and this message:
Copy code
{
  "code": "internal",
  "msg": "operation cannot be completed"
}
e
Hey @kind-zoo-19226, can you provide more context. What SDK are you using? Can you share some code of how you call the endpoint? Do you use LiveKit Cloud or host it yourself?
k
@eager-zoo-16408 It turned out to be an issue with calling the server API with multiple requests I was calling
UpdateParticipant
and
MutePublishedTrack
immediately which somehow caused the first request to fail
I was calling it without
await
so the server was getting processing two requests I think
e
OK, glad you figured that out! :)
k
I faced a lot of issues with the server of these kinds, I think the server should be able to queue the requests if it can't handle them all at a time instead of just failing them
So that it doesn't depend on the client making sure not to send multiple requests
e
I agree, and if this is the case, we need to investigate. Can you provide us with a minimally reproducible example?
k
Well I have reported a similar issue before here https://github.com/livekit/server-sdk-js/issues/79 and here https://github.com/livekit/livekit/issues/2079 That has a reproducible example
e
Thanks for the context. dz is definitely more experienced in this area, I’m not sure I can provide any more guidance than he did.