Azure web pub sub CheckPermissionsAsync call throws 404

Jumwal, Karan Motilal 46 Reputation points
2024-05-16T07:21:54.23+00:00

Before granting a permission to group, I am checking if the user connection already has that permission. The CheckPermissionAsync method returns 404 (Head).

Azure Web PubSub
Azure Web PubSub
An Azure service that provides real-time messaging for web applications using WebSockets and the publish-subscribe pattern.
79 questions
{count} votes

Accepted answer
  1. Siyuan 75 Reputation points Microsoft Employee
    2024-05-16T10:06:52.7366667+00:00

    Hi @Jumwal, Karan Motilal , 404 is one of the expected response codes of this API according to our API Doc. It could be caused by either of cases below:

    1. The given ConnectionId doesn't exist. The response message should be like "Connection <connection-id> is not found."
    2. The given ConnectionId exists but it doesn't have the target permission. The response message should be like "Connection <connection-id> doesn't have the permission joinLeaveGroup"

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.