REST API - Show a group role member returns unhandled error

REST API - Show a group role member returns unhandled error

This question is not answered

Hi,

I am getting an error when calling the REST API Endpoint "Show a group role member" ("/api.ashx/v2/groups/25/roles/user/2252.xml") for a particular user. This is the only user that throw this error. Looking at the site I can see he is an Owner of this group and his profile looks ok.

I tried removing all his roles then adding them back in again via the Membership area of the Control Panel with no luck.

How do I go about debugging this type of error?

Thanks

All Replies
  • Is the group a joinless group?  Are you using an administrator username/API key to connect - if not, does an administrator API key encounter the same issue?  Also can you provide the full error you're getting.

  • Public (Open Membership) . Yes, I am using the Admin user's API Key. When I call the endpoint I get HTML in the response that just says:

    "Sorry, there was a problem with your last request!

    Either the site is offline or an unhandled error occurred. We apologize and have logged the error. Please try your request again or if you know who your site administrator is let them know too."

    Thanks

  • Here is the event log error msg;

    Request information:

       Request URL: mydomain.com.au/.../2252.xml

       Request path: /api.ashx/v2/groups/25/roles/user/2252.xml

       User host address: xx.162.66.1

       User:  

       Is authenticated: False

       Authentication Type:  

       Thread account name: WIN-1BTQNMC32G3\IISAppPoolUser

    Thread information:

       Thread ID: 41

       Thread account name: WIN-1BTQNMC32G3\IISAppPoolUser

       Is impersonating: False

       Stack trace:    at System.Collections.Generic.Dictionary`2.get_Item(TKey key)

      at Telligent.Common.Collections.ParsedEnumCollection`1.get_Item(String value, Boolean ignoreCase)

      at Telligent.Evolution.Rest.Resources.Users.UserMapper.ConvertToRest(User item)

      at Telligent.Evolution.Rest.Resources.Users.UserService.GetUser(Int32 id)

      at Telligent.Evolution.Rest.Resources.Users.UserService.GetUserByIdOrUsername(Nullable`1 id, String username)

      at Telligent.Evolution.Rest.Resources.Roles.RolesController.List(RoleListRequest request)

  • Further to that:

    Exception information:

       Exception type: KeyNotFoundException

       Exception message: The given key was not present in the dictionary.

      at System.Collections.Generic.Dictionary`2.get_Item(TKey key)

      at Telligent.Common.Collections.ParsedEnumCollection`1.get_Item(String value, Boolean ignoreCase)

      at Telligent.Evolution.Rest.Resources.Users.UserMapper.ConvertToRest(User item)

      at Telligent.Evolution.Rest.Resources.Users.UserService.GetUser(Int32 id)

      at Telligent.Evolution.Rest.Resources.Users.UserService.GetUserByIdOrUsername(Nullable`1 id, String username)

      at Telligent.Evolution.Rest.Resources.Roles.RolesController.List(RoleListRequest request)

  • Hi Gerard,

    By any chance is that specific user banned? If so what is the Ban Reason?

    Thanks,

    Rudy Sandoval