Undistraction
Undistraction

Reputation: 43589

What Does This Ember Exception Mean?

I'm getting the following error when creating a new record/model:

Uncaught Error: Attempted to handle event `willSetProperty` on <App.NewsItem:ember361:null> while in state rootState.loaded.created.inFlight. Called with {reference: [object Object], store: <App.Store:ember299>, name: bodyHTML}

What does it mean?

Upvotes: 0

Views: 577

Answers (2)

Suchit Puri
Suchit Puri

Reputation: 394

Seems like either you are modifying an existing dirty object , or you are trying setting some property to undefined

see

http://coryforsyth.com/2013/06/10/the-willsetproperty-gotcha-in-ember-data-understanding-the-state-machine/

Upvotes: 0

Undistraction
Undistraction

Reputation: 43589

Seems to be caused by the application updating a property (called 'bodyHTML') on an instance of a model of type App.NewsItem while it is being saved (rootState.loaded.created.inFlight). I have no idea why I'm receiving the error on creation though.

Upvotes: 1

Related Questions