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.spreadsheets.values.append 24.0.0 OK // 25.0.0.0 KO [valueInputOption]

See original GitHub issue
sheets.spreadsheets.values.append({
    auth: auth,
    spreadsheetId: 'spreadshiiitID',
    range: 'id_clients!A1:B2',
    valueInputOption: "USER_ENTERED",
    resource: {
      values: [
        ["Void", "Canvas", "Website"],
        ["Paul", "Shan", "Human"]
      ]
    }
  }, function(err, response) {
    if (err) {
      console.log('The API returned an error: ' + err);
      return;
    }

    console.log(JSON.stringify(response, null, 2));
  });

Error: ‘valueInputOption’ is required but not specified

this code works if npm install googleapis@24.0.0 but not with npm install googleapis@25.0.0

What is the new code snippet for “valueInputOption” ? Maybe there is a regression.

Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
JustinBeckwithcommented, Jan 25, 2018

We shipped a pretty big update in 25, so it’s entirely likely something regressed. I can take a look at this today.

1reaction
sanmakcommented, Mar 24, 2018

Migrating to version 24.0.0 works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Method: spreadsheets.values.append | Google Sheets
The valueInputOption only controls how the input data will be added to the sheet (column-wise or row-wise), it does not influence what cell...
Read more >
Error: 'valueInputOption' is required but not specified ...
If that doesn't work check my snippet taken from Sheets API NodeJS Quickstart combining it with the concepts of spreadsheets.values.append:
Read more >
sheets.spreadsheets.values.append - Google Sheets
Appends values to a spreadsheet. The input range is used to search for existing data and find a "table" within that range. Values...
Read more >
How to Connect Python to Google Sheets
def append ; values = read_ranges() ; values[0][ ; 'valueInputOption': ; result = spreadsheet_service.spreadsheets() ...
Read more >
Resource$Spreadsheets$Values - googleapis documentation
append (params: Params$Resource$Spreadsheets$Values$Append, ... The valueInputOption only controls how the input data will be added to the sheet (column-wise ...
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