Friday 2 June 2017

Google sheets api 500 INTERNAL error Node Js

Hello i'm using sheets v4 in my nodejs application everything works good for the majority of users but for some users using the service they always get INTERNAL status error what's the meaning of this status and how can i fix it.

here's the error message:

{"code":500,"message":"Internal error encountered.","status":"INTERNAL"}

here's my code:

getSpreadsheetValues(tokens, ssID, SheetName, range, callback){
    request({
        url: 'https://sheets.googleapis.com/v4/spreadsheets/'+ssID+'/values/'+SheetName+'!'+range+'?access_token='+tokens.access_token,
        method: 'GET'
    }, function(error, response, body){
            var body = JSON.parse(body)
            callback(body.error, body.error ? "":body);     

    });
}



via Maher Mahouachi

No comments:

Post a Comment