question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sheets 'Must specify at least one request.' error

See original GitHub issue

With the V4 API, sheets.spreadsheets.batchUpdate is responding with ‘ERROR: Must specify at least one request’ when used in Node.js, even when I specify a valid request body.

const options = {
  spreadsheetId: defaultConfig.spreadsheetId,
  auth: auth.authClient,
  resource: {requests: requests}
};
sheets.spreadsheets.batchUpdate(options, function (error, other){
  console.log(error);
});

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
smurftruesmartcommented, Feb 14, 2018

Yea, nah… I just spent the past 6 hours on this one. batchupdate is totally broke. My guess is, something to do with changes in 26.0 for es6.

Rollback to a previous working version of googleapis, version 21.3.0 works for me. 26.0.1 Gave me same error.

0reactions
JustinBeckwithcommented, Mar 11, 2018

Sounds like we have an answer here 😃 Indeed, you should NOT directly install google-auth-library, since googleapis comes with a compatible client built-in. Thanks for the fix @erickoledadevrel!

@jetrii please do let us know if you’re still having issues after removing google-auth-library from your package.json.

Read more comments on GitHub >

github_iconTop Results From Across the Web

API call to sheets.spreadsheets.batchUpdate failed with error ...
spreadsheets.batchUpdate failed with error : Must specify at least one request. and just go on with the next function which runs after finishing ......
Read more >
[Google Sheets Integration Service] Error 400: Must specify at ...
Hi! I'm using the GoogleSheets_JS service and I'm getting "Error 400: Must specify at least one request" when I'm trying to add batch...
Read more >
Requests | Google Sheets
At least one field must be specified. The root 'properties' is implied and should not be specified. A single "*" can be used...
Read more >
Set rules for your form - Google Docs Editors Help
Checkboxes. Click More More . Click Response validation. Choose the type of rule you want. At the far right, type an error ......
Read more >
Error Messages | API Connector for Google Sheets
The primary known cause of this error is a request that takes too long to complete and therefore hits Google's 6 min/request processing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found