I am getting the below error when using a http get method.
:63502/Scripts/angular.js:14525 Possibly unhandled rejection: {"data":null,"status":-1,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","params":{"id":"23"},"url":"api/Project/GetProject","headers":{"Accept":"application/json, text/plain, */*"}},"statusText":""}
HTML code,
<div class="row pb-20px text-center">
                <label class="col-sm-2 lb-date" for="projid">Project ID</label>
                <input type="text" id="projid" class="col-sm-2" ng-model="project.id" />
                <div style="padding-left:10px;">
                    <button type="submit" class="btn btn-primary col-sm-2" ng-click="ProjSearch()">Submit</button>
                </div>
                </div>
Angular code,
var myView = angular.module('myView', []);
myView.controller('ViewCtrl', ['$scope', '$http', '$filter', function ($scope, $http, $filter) {
$scope.ProjSearch = function () {
    debugger;
    t = {
        'id': $scope.project.id
    };
    var r = $http.get('api/Project/GetProject', { params: t })
            .then(function (response) {
                result = response.data;
                var c;
                $scope.project.title = result.ProjectTitle;
Please suggest on how to clear the error.
 
     
     
    