【问题标题】:Owners returns an empty list所有者返回一个空列表
【发布时间】:2021-12-22 11:22:31
【问题描述】:

我正在向 tapkey 端点发出请求以获取与特定帐户关联的所有者,但在检查所有者时,它是一个空列表:

const token = await this.getAuthorizationCodeToken()
try {
  const {data: owners} = await axios.get(
    `${this.baseUrl}/owners/`,
    {
      headers: {
        'Authorization': `Bearer ${token}`
      }
    }
  )
  console.log('owners: ', owners)
  return accountIds
} catch (error) {
 // throw error ....
}

【问题讨论】:

    标签: tapkey


    【解决方案1】:

    正如我们稍后私下讨论的,不正确的令牌(使用不正确的用户)已被用于检索所有者。 令牌中的用户没有所有者帐户,因此列表为空。 正如您稍后确认的那样,一旦您使用了正确的令牌(通过 Google ID),一切都会正常运行。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-02-07
      • 1970-01-01
      • 2015-08-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多