i am new one so difficult to getting this error using resource module after calling service.
can any one modify my mistake in code where i am getting wrong or just modified that
In my case, the API server was returning an HTML page (an error page) that is treated as a string, instead of the correct JSON response which would be a javascript object.
As a sidenote, javascript errors and stacktraces are really something.