Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Single Call to the appService's method returns success false #1172


User avatar
0
dermeister created

Hi,

I've been accomplished this so many times it's an easy task but this time i could not figure out why this happens. Im just trying to call a single method of my app service but it returns Filters.AbpExceptionFilterAttribute - There are 1 validation errors: Filters.AbpExceptionFilterAttribute - input is null! (input) in logs. here are some codes.

public async Task<CategoryListDto> GetCategory(IdInput input)
        {
            var toReturn = await _categoryRepository.GetAsync(input.Id);
            return toReturn.MapTo<CategoryListDto>();
        }

it does not even jumps to breakpoint.

appService.getCategory({ id: categoryId })
                    .success(function (data) {
                        vm.input = data;
                    });

1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Actually, your code seems correct. Can you check value of categoryId on client side ? You can check ajax request's posted data from Chrome's developer console.

    It seems the only point can cause this problem.