问题
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