nativescript-angular icon indicating copy to clipboard operation
nativescript-angular copied to clipboard

http request errors with rc3

Open mikeybyker opened this issue 10 years ago • 1 comments

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 avatar Jul 29 '16 11:07 mikeybyker

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

mikeybyker avatar Jul 29 '16 12:07 mikeybyker