首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Tabletop.js试图从Google检索JSON时收到500个“内部错误”

Tabletop.js试图从Google检索JSON时收到500个“内部错误”
EN

Stack Overflow用户
提问于 2019-04-29 23:08:51
回答 1查看 869关注 0票数 3

我们已经将Tabletop用于几个项目,作为从Google获取少量数据的简单方法。

下面是来自Tabletop.js Github的示例代码

代码语言:javascript
复制
function init() {
  Tabletop.init( { key: 'https://docs.google.com/spreadsheets/d/0AmYzu_s7QHsmdDNZUzRlYldnWTZCLXdrMXlYQzVxSFE/pubhtml',
    callback: function(data, tabletop) { 
      console.log(data)
    },
    simpleSheet: true } )
}
window.addEventListener('DOMContentLoaded', init)

下面是我的示例数据源:https://docs.google.com/spreadsheets/d/1atRxZ4IgQPo5z5-DV7okHdtml8e3VdPjpuiEhwvU8FI/pubhtml

但是当我尝试执行这个测试代码时:https://jsfiddle.net/BaronGrivet/oqnx2sjc/

代码语言:javascript
复制
<div id="data">
<strong>Data should appear here: </strong>
</div>

function init() {
Tabletop.init( { 
  key: 'https://docs.google.com/spreadsheets/d/1atRxZ4IgQPo5z5-DV7okHdtml8e3VdPjpuiEhwvU8FI/pubhtml',
  callback: function(data, tabletop) { 
    console.log(data)
    document.getElementById('data').innerHTML += data
  },
  simpleSheet: true } )
}
init()

控制台中出现以下错误:

加载资源失败:服务器响应状态为500 () https://spreadsheets.google.com/feeds/worksheets/1atRxZ4IgQPo5z5-DV7okHdtml8e3VdPjpuiEhwvU8FI/public/basic?alt=json

加载https://spreadsheets.google.com/feeds/worksheets/1atRxZ4IgQPo5z5-DV7okHdtml8e3VdPjpuiEhwvU8FI/public/basic?alt=json会产生“内部错误”

我意识到这意味着谷歌身边有一个错误--但我不知道这是一个会被修正的错误,还是一个服务的永久改变,要么需要改变Tabletop,要么已经完全停止了访问JSON的选择。

有没有其他人遇到过这个问题,并找到了解决办法?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-04-30 08:46:57

https://issuetracker.google.com/issues/131613284上最好遵循谷歌的问题路线

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55911904

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档