Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #35608 > unrolled thread
| Started by | terminator <srcjnu@gmail.com> |
|---|---|
| First post | 2018-09-18 08:53 -0700 |
| Last post | 2018-09-20 02:05 +0700 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.javascript
http call giving error terminator <srcjnu@gmail.com> - 2018-09-18 08:53 -0700
Re: http call giving error JJ <jj4public@vfemail.net> - 2018-09-20 02:05 +0700
| From | terminator <srcjnu@gmail.com> |
|---|---|
| Date | 2018-09-18 08:53 -0700 |
| Subject | http call giving error |
| Message-ID | <b83ffdd3-fbaf-4493-aa37-302eba75875a@googlegroups.com> |
This is my controller code https://pastebin.com/XdLdx7eZ This my service code https://pastebin.com/N91fS2hb I'm getting error in browser console http://i218.photobucket.com/albums/cc298/curseofgoldendragon/error-js_zpswfmrm6dz.png Or http://s218.photobucket.com/user/curseofgoldendragon/media/error-js_zpswfmrm6dz.png.html Here I have made two http calls in service code. Output from first http call is the input to second http call. Is there any issue with service code ? What changes I need to do in my code to fix this error?
[toc] | [next] | [standalone]
| From | JJ <jj4public@vfemail.net> |
|---|---|
| Date | 2018-09-20 02:05 +0700 |
| Message-ID | <1jc5acpqhsdwd.19kx3jrl5ahnp$.dlg@40tude.net> |
| In reply to | #35608 |
On Tue, 18 Sep 2018 08:53:41 -0700 (PDT), terminator wrote: > This is my controller code > > https://pastebin.com/XdLdx7eZ > > This my service code > > https://pastebin.com/N91fS2hb > > I'm getting error in browser console > > http://i218.photobucket.com/albums/cc298/curseofgoldendragon/error-js_zpswfmrm6dz.png > > > Or > > http://s218.photobucket.com/user/curseofgoldendragon/media/error-js_zpswfmrm6dz.png.html > > > Here I have made two http calls in service code. Output from first http > call is the input to second http call. > > Is there any issue with service code ? It's because `getPriceBookList()` doesn't return anything. > What changes I need to do in my code to fix this error? Return the `$http` promise. But check whether its `success()` method is still implemented or not, because that method has been deprecated. If it is, then you'll have to find other way to achieve the same result.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web