Skip to content

http request errors with rc3 #378

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

Closed
mikeybyker opened this issue Jul 29, 2016 · 1 comment
Closed

http request errors with rc3 #378

mikeybyker opened this issue Jul 29, 2016 · 1 comment

Comments

@mikeybyker
Copy link

Simple http request... was working before updated to rc3 (or rc4)

  • angular 2.0.0-rc.3
  • nativescript-angular: 0.2.1
  • Android emulator

return this.http.get('http://etc.').map(res => res.json())

Which produces the error...

com.tns.NativeScriptException: Calling js method onQueryTextSubmit failed

Error: not implemented

And that's thrown in parse5_adapter.js 612:
Parse5DomAdapter.prototype.getCookie = function (name) { throw new Error('not implemented'); };

Not sure why getCookie is getting called, but that's where the error is thrown.

I've tried in nativescript-angular: 0.2.0 as well, same thing.

@mikeybyker
Copy link
Author

OK - solved - saw a comment by @vakrilov on #345 :
"In vNext you will just have to provide NS_HTTP_PROVIDERS"

In case someone else runs into it...

Swap out
HTTP_PROVIDERS
for NS_HTTP_PROVIDERS (from 'nativescript-angular/http')
in nativeScriptBootstrap

Now just the problem that the list view is not updating when new data comes in... I think I've seen that referenced elsewhere...

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

1 participant