Have you tried logging in and out? Also stick a breakpoint in the line mentioned above (or put some console.log) and see what the returned product array is like. Also maybe check the error output. basically it should never hit the Throw at the end of the function if the returned response has a product array in it.