javascript - Parse.com Error Code 111 on save -


i'm experiencing intermittent error app i'm writing. i'm using javascript parse.com back-end.

i have array of objects. example:

[    {        "skillbase": 96,        "skillname": "first aid"     },     {        "skillbase": 96,        "skillname": "communication"     } ] 

i have 3 rows in parse.com of model called "character". 1 of columns character of type array named "baseskills".

i generate array of objects , save back-end using first of 3 characters, no problem. however, cannot save similar arrays second , third characters. keep getting error:

https://api.parse.com/1/classes/character/zoi6qd14m6 400 (bad request) parse.js:1551  parse._ajax parse.js:1649 parse._request parse.js:5590 (anonymous function) parse.js:4055 (anonymous function) parse.js:3895 wrappedresolvedcallback parse.js:3957 (anonymous function) parse.js:3940 runlater parse.js:3956 _.extend.then parse.js:4054 _.extend._continuewith parse.js:5578 _.extend.saveskills.js:833 (anonymous function) parse.js:3895 wrappedresolvedcallback parse.js:3839 (anonymous function) parse.js:95 _.each._.foreach parse.js:3838 _.extend.resolve parse.js:3900 (anonymous function) parse.js:3895 wrappedresolvedcallback parse.js:3957 (anonymous function) parse.js:3940 runlater parse.js:3956 _.extend.then parse.js:3899 wrappedresolvedcallback parse.js:3839 (anonymous function) parse.js:95 _.each._.foreach parse.js:3838 _.extend.resolve parse.js:3905 wrappedresolvedcallback parse.js:3839 (anonymous function) parse.js:95 _.each._.foreach parse.js:3838 _.extend.resolve parse.js:3905 wrappedresolvedcallback parse.js:3839 (anonymous function) parse.js:95 _.each._.foreach parse.js:3838 _.extend.resolve parse.js:3900 (anonymous function) parse.js:3895 wrappedresolvedcallback parse.js:3957 (anonymous function) parse.js:3940 runlater parse.js:3956 _.extend.then parse.js:3899 wrappedresolvedcallback parse.js:3839 (anonymous function) parse.js:95 _.each._.foreach parse.js:3838 _.extend.resolve parse.js:1536 xhr.onreadystatechange skills.js:844 error code: 111 

if take array of objects , manually enter via parse.com's web interface, accepts it.

when pass array of objects valid first character second , third characters, above error. if opposite - take array of objects of second or third character , apply them first character, accepted.this why labeled problem intermittent, though may bit misleading.

i find puzzling because research suggests error 111 type error; if data type i'm passing not match configuration on back-end. yet column expects array, , i'm reasonably sure i'm passing array.

here sample code fail "400 bad request":

var testarr =  [{"foo": 5},{"bar": 7}];  character.set("charbaseskills", testarr); character.save().then(function(character) {     d.resolve(character); }); 

if has thoughts or suggestions, appreciated. thanks!


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -