'500 Backend Error' on Google Fusion Table Insert Table -


i enable user create new fusion table through application.

gapi.client.load('fusiontables', 'v2').then(function() {   var request = gapi.client.fusiontables.table.insert({     'columns'      : [{                       'name': 'test'                      }],     'isexportable' : true,     'name'         : 'foobar',   });   request.then(function(resp) {     alert(resp)   }, function(reason) {     console.log(reason);     alert('error: ' + reason.result.error.message);   }); }); 

everything appears working fine response continues status code 500 "backend error".

i went https://developers.google.com/apis-explorer/#p/fusiontables/v2/fusiontables.table.insert , used api explorer execute same. result there 500 well. know why happening/how can succeed in creating new fusion table users?

i think columns need both column name , type define it. that's why request failing:

gapi.client.load('fusiontables', 'v2').then(function() {   var request = gapi.client.fusiontables.table.insert({     'columns'      : [{                          "name": "tacos",                          "type": "string"                      }],     'isexportable' : true,     'name'         : 'foodbar',   });   request.then(function(resp) {     alert(resp)   }, function(reason) {     console.log(reason);     alert('error: ' + reason.result.error.message);   }); }); 

Comments

Popular posts from this blog

python - Mongodb How to add addtional information when aggregating? -

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

java - Incorrect order of records in M-M relationship in hibernate -