Data Studio 连接器 - 获取更多有用的调试消息

Data Studio Connector - getting more helpful messages for debugging

我正在构建一个 google 数据工作室连接器,但不清楚错误出在哪里。

是否可以从数据工作室连接器中获取有关无法正常工作的问题的特定错误消息。

而不只是一个通用的..

```
There was an error caused by the community connector. Please report the issue to the provider of this community connector if this issue persists.

Connector details
There was an error caused by this connector.

Error ID: b8104ea6
```

error handling and messages guide 提供了有关如何向用户显示连接器错误的详细信息。除其他事项外,您应该确保开发人员(您自己)isAdminUser() returns true

添加此代码对我的情况有所帮助:

function isAdminUser() {
  return true;
}

在此处找到解决方案:

以下语句来自googlehttps://developers.google.com/datastudio/connector/error-handling

实施 isAdminUser() 以识别管理员,以便向连接器用户显示正确级别的详细信息。

这应该可以解决问题。

正如 Max Makhrov 在上面回答的那样。添加 function isAdminUser() { return true; }