【发布时间】:2021-07-16 20:27:04
【问题描述】:
当尝试查询访问由 Google 表格支持的外部表的视图时,我收到此错误。 googleapi: Error 403: Access Denied: BigQuery BigQuery: Permission denied while getting Drive credentials., accessDenied
我已经申请了 Drive 的范围,还有什么我遗漏的吗?
client, err := bigquery.NewClient(ctx, "projectID", option.WithScopes("https://www.googleapis.com/auth/drive"))
if err != nil {
return nil, err
}
【问题讨论】:
-
这能回答你的问题吗? Cannot query tables from sheets in BigQuery
标签: go google-cloud-platform google-bigquery