mgonto / restangular

AngularJS service to handle Rest API Restful Resources properly and easily
MIT License
7.87k stars 840 forks source link

TypeError: Converting circular structure to JSON while <restangular-object>.put() #1488

Closed shammihembrom7 closed 6 years ago

shammihembrom7 commented 6 years ago

I am getting an issue while using restangular .put().

I get this on logging the error:

TypeError: Converting circular structure to JSON at JSON.stringify () at toJson (bundle.js:1590) at defaults.defaults.transformRequest (bundle.js:11810) at bundle.js:11730 at forEach (bundle.js:545) at transformData (bundle.js:11729) at serverRequest (bundle.js:12627) at processQueue (bundle.js:17554) at bundle.js:17602 at Scope.$digest (bundle.js:18715)

Note: I am getting this error for the whole project. .get() and .post() are working fine, this issue only occurs while using .put()

shammihembrom7 commented 6 years ago

Got This! I had improper configuration setup.