Skip to content

"restangularizeElement" then got: Converting circular structure to JSON #983

@Perpherior

Description

@Perpherior

I have meet a problem that to use "restangularizeElement".

Restangular.restangularizeElement("", user, "users")
user.put()

restangularizeElement is fine but when I update the user, browser show a error: Converting circular structure to JSON. The tricky thing is once I refresh the browser, everything goes well, update function works well.
I don't think it is a good idea to let user refresh their browser before using the function.
Is there any approach to solve this issue?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions