Here's my error:
SyntaxError: Unexpected token C
at Object.parse (native)
at jQuery.parseJSON (http://localhost:4200/assets/vendor.js:8219:14)
at ajaxConvert (http://localhost:4200/assets/vendor.js:8501:19)
at done (http://localhost:4200/assets/vendor.js:8962:15)
at XMLHttpRequest.<anonymous> (http://localhost:4200/assets/vendor.js:9378:9)
I'm not sure where to go from here. I'm able to pull data from my backend json api with no problems, but when I try to save data, I just get that jquery error. I'm using the following call:
addObject(newObject) {
newObject.save().then(() => this.transitionTo('page.index'));
}
I've read the jquery error has to do with the fact that it's trying to parse a json object into json, but since this is being done by ember, I'm not sure if I'm missing a step somewhere.
If anyone has any ideas of the right direction to look, I'd appreciate it.
Aucun commentaire:
Enregistrer un commentaire