Closed colinhicks closed 10 years ago
BTW, a separate workaround is to explicitly specify oauth.scopes
within the options arg:
Spreadsheet.load({
debug: true,
spreadsheetName: 'node-edit-spreadsheet',
worksheetName: 'Sheet1',
oauth: {
email: 'my-name@google.email.com',
keyFile: 'my-private-key.pem',
scopes: ['https://spreadsheets.google.com/feeds', 'https://docs.google.com/feeds']
}
}, function sheetReady(err, spreadsheet) {
// ...
});
hey Colin, thanks for the PR :)
When using OAuth, it's apparently now necessary to pass an additional scope to the JWT auth request:
https://docs.google.com/feeds
Without it, requests for spreadsheet data 404, yielding downstream errors like:
Caveat: I have not seen any documentation from Google about this change. It is possible that it's unintended on their part. At the moment, their own OAuth Playground returns 404s for spreadsheet API requests built with the wizard – unless you manually add the
https://docs.google.com/feeds
scope.See also this stackoverflow thread from the past 12 hours.