Azure web pub sub CheckPermissionsAsync call throws 404

Jumwal, Karan Motilal 46 Reputation points

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.
66 questions
{count} votes

Accepted answer
  1. Siyuan Xing 75 Reputation points Microsoft Employee

    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