【问题标题】:Yodlee getAllContentServices not respondingYodlee getAllContentServices 没有响应
【发布时间】:2014-10-22 02:58:48
【问题描述】:

这是一个关于 Yodlee '/jsonsdk/ContentServiceTraversal/getAllContentServices' API 的技术问题。 我遵循了有关如何调用 Yodlee 的教程并具有以下代码:

  query({
    :endpoint => '/jsonsdk/ContentServiceTraversal/getAllContentServices',
    :method => :POST,
    :params => {
      :cobSessionToken=> cobrand_token,
      :notrim=> true
    }
  })

其中 def 查询如下:

def query opts
  method = opts[:method].to_s.downcase
  response = self.class.send(method, opts[:endpoint], query: opts[:params])
  data=response.parsed_response
  log_query(opts.merge({response:data, code:response.code}))  

  if response.success?
    if[TrueClass, FalseClass, Fixnum].include?(data.class)
      data
    else
      convert_to_mash(data)
    end
  else
    nil
  end
end

我的问题是当我在查询中设置“notrim: true”时,我的查询响应没有返回任何内容。但是,当我在查询中设置“notrim: false”时,对 API 的调用将正常运行。有人可以给我一个解释和解决方案吗?谢谢。

【问题讨论】:

    标签: yodlee


    【解决方案1】:

    如果您传递 notrim: true ,则返回的数据很大,接近 25 mb,因此需要时间并可能导致连接超时,因此您可能无法从 API 获得响应。

    请通过以下帖子了解如何使用替代方法。

    getallcontentservices-returns-huge-data

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-27
      • 1970-01-01
      • 2014-12-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多