在没有标记之后,我只进行了几次api调用。
问题是,响应是不可靠的,因为有时某些请求按预期工作,而有时它们不工作,并且没有确定的方法来找出为什么和什么时候不起作用。
例如,使用相同的auth令牌(在这里编辑)--我在不同的迭代中进行了以下api调用,并粘贴了下面的结果。
https://developer-api.nest.com/structures
https://developer-api.nest.com/devices/smoke_co_alarms
https://developer-api.nest.com/devices/thermostatsHttpRequest(https://developer-api.nest.com/structures,GET,List((auth,some_auth_token)),List(用户代理,scalaj-http/1.0),(content-Type,application/json ),List(,,),直接,UTF-8,4096,true)
No ResponseHttpRequest(警报器,GET,List((auth,some_auth_token)),List(用户代理,scalaj-http/1.0),(content-Type,application/json ),List(,,),直接,UTF-8,4096,true)
HttpRequest(https://developer-api.nest.com/structures,GET,List((auth,some_auth_token)),List(用户代理,scalaj-http/1.0),(content-Type,application/json ),List(,,),直接,UTF-8,4096,true)
HttpRequest(https://developer-api.nest.com/devices/thermostats,GET,List((auth,some_auth_token)),List(用户代理,scalaj-http/1.0),(content-Type,application/json ),List(,,),直接,UTF-8,4096,true)
No Response我相当肯定这是NEST API的一个问题。还有其他人面临类似的问题吗?
你做了什么或者你建议我做什么?
发布于 2015-04-30 06:49:37
你能用盖斯特还是巴斯托吗?这种格式很难读懂。
来自执行部分:
我解决了这个问题。我没有启用该选项来跟踪临时重定向,而空响应是因为我只提取身体。我完全没有意识到我是在打印响应时提取身体内容的。
https://stackoverflow.com/questions/29959717
复制相似问题