angular2-authentication-sample icon indicating copy to clipboard operation
angular2-authentication-sample copied to clipboard

Update Angular2 package version error calling to secure api

Open diegomon opened this issue 10 years ago • 1 comments

If I update the package version of Angular from 2.0.0-beta.0 to 2.0.0-beta.1. I get the following error when I call to the secure api through authHttp. TypeError: First argument must be a url string or Request instance. at Object.makeTypeError (exceptions.js:69) at Http.request (http.js:122) at AuthHttp._request (angular2-jwt.js:74) at AuthHttp.requestHelper (angular2-jwt.js:83) at AuthHttp.get (angular2-jwt.js:86) at Home._callApi (home.ts:55) at Home.callSecuredApi (home.ts:40) at AbstractChangeDetector.ChangeDetector_Home_0.handleEventInternal (viewFactory_Home:173) at AbstractChangeDetector.handleEvent (abstract_change_detector.js:57) at AppView.triggerEventHandlers (view.js:213) It seems there is a dependency of angular2-jwt to the older version. Is there an incompatibility between http.get in beta.0 and beta.1?.

diegomon avatar Jan 15 '16 16:01 diegomon

I am also getting the same error.

austinheinrichs avatar May 21 '16 06:05 austinheinrichs