Http call error

This is my controller code

This my service code

I’m getting error in browser console

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?

Your controller is trying to call success() on the output from getPriceBookList() which is undefined, as the method is not returning anything.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.