Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Angular2 package version error calling to secure api #48

Open
diegomon opened this issue Jan 15, 2016 · 1 comment
Open

Update Angular2 package version error calling to secure api #48

diegomon opened this issue Jan 15, 2016 · 1 comment

Comments

@diegomon
Copy link

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?.

@austinheinrichs
Copy link

I am also getting the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants