将google sheets链接到firebase时出现问题

将google sheets链接到firebase时出现问题,firebase,firebase-realtime-database,google-sheets,Firebase,Firebase Realtime Database,Google Sheets,这是我试图链接的第一页: 我正在尝试将此链接到Firebase实时数据库。但我不断收到此错误“错误:无效数据;无法分析从1:31开始的键。当我运行JS时,键值不能为空或包含$#[]/或。(第297行,文件“)。我没有第297行。我已耗尽了我的能力 这是我的JavaScript /** *版权所有2019谷歌有限责任公司。 *SPDX许可证标识符:Apache-2.0 */ 函数getEnvironment(){ 变量环境={ 电子表格:https://docs.google.com/sprea

这是我试图链接的第一页:

我正在尝试将此链接到Firebase实时数据库。但我不断收到此错误
“错误:无效数据;无法分析从1:31开始的键。当我运行JS时,键值不能为空或包含$#[]/或。(第297行,文件“
)。我没有第297行。我已耗尽了我的能力

这是我的JavaScript

/**
*版权所有2019谷歌有限责任公司。
*SPDX许可证标识符:Apache-2.0
*/
函数getEnvironment(){
变量环境={
电子表格:https://docs.google.com/spreadsheets/d/1tW70DypeL3vLOIQZ7zm8HcztKxs2FKBdNsTdH56uax0/edit#gid=0",
firebaseUrl:“https://tech-hound-test-database.firebaseio.com/"
};
回归环境;
}
//为特定工作表创建Google工作表更改触发器
函数createSpreadsheetEditTrigger(sheetID){
var triggers=ScriptApp.getProjectTriggers();
var triggerExists=false;
对于(var i=0;i
还有我的JSON

{
“时区”:“美国/洛杉矶”,
“依赖项”:{
“图书馆”:[{
“userSymbol”:“FirebaseApp”,
“库ID”:“1hguuh4Zx72XVC1Zldm_VTTCUKUA6IBOUOGNJUWLFQDWX5WLOJHQYKRT”,
“版本”:“29”,
“发展模式”:正确
}]
},
“例外记录”:“STACKDRIVER”,
“oauthScopes”:[“https://www.googleapis.com/auth/firebase.database", "https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/spreadsheets", "https://www.googleapis.com/auth/script.scriptapp", "https://www.googleapis.com/auth/script.external_request"],
“executionApi”:{
“访问”:“域”
}
}

非常感谢您的帮助,我正在学习web开发。谢谢!

在调用
base.setData(“,dataToImport)
)之前,您能否提供
dataToImport
的值示例?在调用
base.setData(“)之前,您能否提供
dataToImport
的值示例,数据导入)