failed to load resource: the server response with a status 500 (internal server error)

If your _service.getCardList() returns null then the foreach will throw an exception which you have not handled.

Maybe that is the reason you are getting (500) internal server error and not the jquery url, as 500 error code suggests that something went wrong in the server code.

As a suggestion, You should use implement try - catch and log the exceptions somewhere to be able to resolve such issues.

Leave a Comment