Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code doesn't pull from googlesheet anymore #45

Open
rubikazariah opened this issue Mar 17, 2022 · 4 comments
Open

Code doesn't pull from googlesheet anymore #45

rubikazariah opened this issue Mar 17, 2022 · 4 comments

Comments

@rubikazariah
Copy link

Hi

This was an amazing piece of code. Sadly doesn't work any more. I think the Google sheet URL nomenclature changed for one. But I am not certain how to update the file. I'm hoping it can be fixed.

Was great while it lasted. Hope someone fixes it as the sites made with a link to a google sheet no longer work.

Thanks

Rubik

@dnaworks
Copy link

What's the error that you're getting? Have you published the google doc from which you're drawing the data?

@rubikazariah
Copy link
Author

I wasn’t getting an error. The site was up and working for years and it suddenly stopped. So I looked at the example links of other sites made with this code and the ones that pull from Google sheets don’t work. The ones that are using manual arrays or maybe separate json files do.

@rubikazariah
Copy link
Author

Oh my bad the console does show errors -
Failed to load resource: the server responded with a status of 404 ()
Uncaught Cannot load spreadsheet. Is it published? (@see https://support.google.com/drive/answer/37579?hl=en) wtf.js:311

I think the error is in this line
var DOCS_PATH = "https://spreadsheets.google.com/feeds/list/{key}/od6/public/values?alt=json";

Nowadays the url reads - https://docs.google.com/spreadsheets/d/

The key is 44 characters now, I think the original code is set for 32.

@jesekaj
Copy link

jesekaj commented Aug 2, 2022

It looks like this is an issue of API v3 vs APIv4 w Google sheets. The wtf.js file would need to be altered to work with the new API I think. I'm no good w json so I haven't figured out how to fix it just yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants