Nest API returning 401 and 429 when using websock stream yet REST ok

ぐ巨炮叔叔 提交于 2019-12-24 12:28:04

问题


I have an android app that uses the Nest API. I used the NestLib from the sample app from Nest but updated the library with 1.1.1.

The whole API works great yet some accounts (not all) seem to come back with a 401 error (as well as a -999 on firebase debug) but only when initiating a websock stream (it authenticates ok then on redirect to stream the error appears). I tested this in POSTMAN whereby i can get all the data back using the Accept: text/event-stream header I get a 429 error.

From that i assumed it's had too many requests therefore I left it overnight and today its still doing the same. Strange thing is I can register that account to another clients in nest dev and it works and other accounts can still register to that client too and work ok.

来源:https://stackoverflow.com/questions/28854053/nest-api-returning-401-and-429-when-using-websock-stream-yet-rest-ok

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!