Looking to retrieve JSON data from a file named driverStandings.json, which can be found in the structure from the provided image. I am utilizing a service API to fetch this information by using the code displayed below (refer to image).
https://i.sstatic.net/PGA3G.png
After compiling, instead of obtaining my list of drivers, I encounter the following error:
TypeError: url.replace is not a function
at angular.js:8557
at sendReq (angular.js:8426)
at $get.serverRequest (angular.js:8146)
at deferred.promise.then.wrappedCallback (angular.js:11682)
at deferred.promise.then.wrappedCallback (angular.js:11682)
at angular.js:11768
at Scope.$get.Scope.$eval (angular.js:12811)
at Scope.$get.Scope.$digest (angular.js:12623)
at Scope.$get.Scope.$apply (angular.js:12915)
at done (angular.js:8450)
Could someone shed some light on what exactly a TypeError means and why I am encountering this issue?