Code Monkey home page Code Monkey logo

Comments (4)

dnaworks avatar dnaworks commented on July 30, 2024

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

from wtfengine.

rubikazariah avatar rubikazariah commented on July 30, 2024

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.

from wtfengine.

rubikazariah avatar rubikazariah commented on July 30, 2024

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.

from wtfengine.

jesekaj avatar jesekaj commented on July 30, 2024

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.

from wtfengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.