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.

fetcher sheets have an empty data on index 0

See original GitHub issue

Description

Based on #242, you will know that we have an empty data on /data/wbw-sheets.json produced by script on /etc/fetchers/fetch-sheets.ts.

Sample empty data:

[
  {"id":"358239346","name":"Tentang Database","data":[]},
  {
    "id": "0",
    "name": "DKI Jakarta",
    "data": []
  },
]

Expected Behaviour

Remove “Tentang Database” from the result.

Additional Information

Need to check, is our App already expect this condition, if yes, you need to change it also

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
mazipancommented, Jul 23, 2021

If the performance of scrapping the Google Sheet was the main issue, we don’t need to change it, we just need to remove the first array after finish the scrapping process.

It’s not high cost in my opinion

1reaction
Namcheecommented, Jul 26, 2021

This issue should have been resolved already by #361. The first sheet is removed after the sheets have been fetched.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Index Function Not Working. Returning Blanks - Google Support
...but the second image shows the blank once I add a few empty rows above. Please help. Details. Sheets,Microsoft Windows,Personal use.
Read more >
iMPORTXML is returning #NA (imported content is empty) in ...
To get the first one, you can do =index(IMPORTXML(N12;"//h1");1;1) or ... in I9, you could fetch all data at once using this global...
Read more >
How to use Google Sheets as a basic web scraper - Ben Collins
How to use the IMPORT formulas in Google Sheets to build a basic web scraper and get data from websites into your Google...
Read more >
How to Return First Non-blank Value in a Row or Column
To return the first non-blank value in a row or column, you can use Query or an Index-Match combination formula in Google Sheets....
Read more >
get_values does not return all data in some scenarios ... - GitHub
This is due to SpreadSheet API that returns a list of values for each row that is returned and trims empty values at...
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