Hi,
First of all, I do not know whether what I am seeing is an AngularJS issue or an ng-admin issue.
My setup is:
- ng-admin 1.0.13
- angularJS 1.6.4
- loopback 3.20.0
- nodeJS 8.11.3
The application that is throwing errors is really simple - it comprises an ng-admin with three entities - each entity has the expected list, show, creation, edition views. All entities throw errors, for example
- take any entity and create a new instance. All goes as expected until I hit the submit button at which time I get the following:
[Error] undefined is not an object (evaluating 'e.data.message') angular.min.js:95
(anonymous function) (ng-admin.min.js:7:21502)
l (ng-admin.min.js:8:9436)
$digest (ng-admin.min.js:8:15285)
(anonymous function) (ng-admin.min.js:8:16853)
i (ng-admin.min.js:6:29828)
(anonymous function) (ng-admin.min.js:6:31273)
The instance is created correctly and I can manipulate as expected. However, when I try to delete the instance (on clicking the final confirmation button), I get:
[Error] Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'e.data.message') handleDefaultError - HttpErrorService.js:27
handleDefaultError (ng-admin.min.js:50:29570)
handleError (ng-admin.min.js:50:29315)
(anonymous function) (ng-admin.min.js:48:13957)
promiseReactionJob
Again, the instance is correctly deleted from the application. Another observation is that these errors mess up the sessionStorage in the browser (both Chrome and Safari) - I store small amounts of data in sessionStorage but after the errors above, sessionStorage is empty.
I'm not clear where to start to debug this issue so any pointers would be very welcome.
Regards,
ac