Create User Rest Endpoint Error

Hello,

i tried the create user rest endpoint with below body:

{

"Username" : "miketyson",
"Password" : "miketyson",
"PrivateEmail" : "miketyson@localhost.com"

}

Response:

{
"Users": null,
"User": null,
"Info": [],
"Warnings": [],
"Errors": [
"An unexpected error prevented your requested action from completing. The error has been logged for the administrator to review."
]
}

Parents
  • System.ArgumentNullException: Value cannot be null.
    Parameter name: source
       at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)
       at Telligent.Evolution.Api.Services.TranslatedExceptionService.Invalid(CSException ex, String exceptionResourceName, IReadOnlyList`1 arguments, IReadOnlyList`1 validationErrors)
       at Telligent.Evolution.Platform.Components.Exceptions.ValidationException.GetTranslatedMessage(ITranslatedExceptionService translatedExceptionService)
       at Telligent.Evolution.Components.CSException.GetUserRenderableMessage()
       at Telligent.Evolution.Extensibility.Api.Entities.Version1.Error..ctor(Exception ex)
       at Telligent.Evolution.Extensibility.Api.Entities.Version1.AdditionalInfo..ctor(Exception ex)
       at Telligent.Evolution.Extensibility.Api.Version1.Users.Create(String username, String password, String privateEmail, UsersCreateOptions options)
       at Telligent.Evolution.Rest.Resources.Users.UserController.Create(UserCreateRequest request)
Reply
  • System.ArgumentNullException: Value cannot be null.
    Parameter name: source
       at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)
       at Telligent.Evolution.Api.Services.TranslatedExceptionService.Invalid(CSException ex, String exceptionResourceName, IReadOnlyList`1 arguments, IReadOnlyList`1 validationErrors)
       at Telligent.Evolution.Platform.Components.Exceptions.ValidationException.GetTranslatedMessage(ITranslatedExceptionService translatedExceptionService)
       at Telligent.Evolution.Components.CSException.GetUserRenderableMessage()
       at Telligent.Evolution.Extensibility.Api.Entities.Version1.Error..ctor(Exception ex)
       at Telligent.Evolution.Extensibility.Api.Entities.Version1.AdditionalInfo..ctor(Exception ex)
       at Telligent.Evolution.Extensibility.Api.Version1.Users.Create(String username, String password, String privateEmail, UsersCreateOptions options)
       at Telligent.Evolution.Rest.Resources.Users.UserController.Create(UserCreateRequest request)
Children
  • i tried adding another attributes and it created the user but still return error 500.

    {
    "Username" : "jvictor",
    "Password" : "jvictor",
    "PrivateEmail" : "jvictor@localhost.com",
    "EnableDisplayName" : "true",
    "AllowSiteToContact" : "false",
    "AllowSitePartnersToContact" : "false"
    }

    User was created but response:

    {
    "Users": null,
    "User": null,
    "Info": [],
    "Warnings": [],
    "Errors": [
    "An unexpected error prevented your requested action from completing. The error has been logged for the administrator to review."
    ]
    }