【问题标题】:Google Data Studio - "No Data Set Access" when displaying charts from PostgreSQL data sourceGoogle Data Studio - 显示来自 PostgreSQL 数据源的图表时“无数据集访问权限”
【发布时间】:2021-04-21 17:25:05
【问题描述】:

我在尝试使用我的任何 PostgreSQL 数据源显示图表时遇到以下错误。

No Data Set Access
Insufficient permissions to the underlying data set.
Access denied, please check your username and password.
Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.

我已将 PostgreSQL 实例上的所有 Google Data Studio IP 列入白名单,并且将相应的数据源添加到我的 Google Data Studio 报告中没有问题(添加数据 > PostgreSQL > 验证(使用 PostgreSQL 用户)> 添加)但每个当我尝试添加图表时,我收到此错误消息。

有人知道这里出了什么问题吗?

【问题讨论】:

    标签: postgresql google-cloud-platform oauth-2.0 oauth google-data-studio


    【解决方案1】:

    我能够通过将所有表的所有权限授予我用于在 Google Data Studio 上进行身份验证的用户来解决此问题。您需要使用超级用户(例如 postgres)运行以下 SQL 查询:

    GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO my_user;
    

    解决此问题的另一个选项是使用超级用户(例如 postgres)进行身份验证。

    如果你们中的一些人碰巧被图表上显示的日志阻止,我建议尝试在“自定义查询”中添加带有 SELECT * FROM my_table 的数据,而不是使用“表格”。日志更加明确。

    【讨论】:

      猜你喜欢
      • 2015-12-21
      • 1970-01-01
      • 1970-01-01
      • 2010-10-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多