nest-api icon indicating copy to clipboard operation
nest-api copied to clipboard

$issue_token, and $cookies seemed not working anymore

Open rolandbreedveld opened this issue 2 years ago • 3 comments

Working for a long time with this, sometimes had to recreate the $issue_token, and $cookies, without problems but since a couple of week, it's not accepting the new values anymore:

PHP Notice: Undefined variable: result in /home/pi/nest-api/nest.class.php on line 1295 PHP Fatal error: Uncaught UnexpectedValueException: Response to login request doesn't contain required access token. Response: null in /home/pi/nest-api/nest.class.php:1295 Stack trace: #0 /home/pi/nest-api/nest.class.php(1290): Nest->login(false) #1 /home/pi/nest-api/nest.class.php(124): Nest->login() #2 /home/pi/nest-api/get_nest.php(20): Nest->__construct(NULL, NULL, 'https://account...', '__Secure-3PSID=...') #3 {main} thrown in /home/pi/nest-api/nest.class.php on line 1295

hope someone solved this, regards, Roland

rolandbreedveld avatar Jun 12 '22 14:06 rolandbreedveld

I'm seeing the exact same thing too

newadventure079 avatar Jul 18 '22 06:07 newadventure079

Solved the issue, if you use (as I did) the the value copy button in chrome it will translate all stuff like %20 to a space, when I copied the string (not with the button), everything works again. Think this is changed this behaviour in the latest Chrome releases.

rolandbreedveld avatar Jul 18 '22 16:07 rolandbreedveld

I noticed this problem too but it seems to be related to something else then the filled in values. an exact copy does not run on my raspberry but does run on quickly setup ubuntu vm. I guess there is a version problem with something else. Did anyone else run into this and already found the culprit?

remcohans avatar Oct 14 '22 22:10 remcohans