hepcat72 / node-red-contrib-life360

GNU General Public License v3.0
3 stars 4 forks source link

Life360 Server Error Logging In: #18

Closed ctreischman closed 10 months ago

ctreischman commented 10 months ago

Yesterday I started receiving this:

"Life360 server error logging in: 403 Error: Request failed with status code 403 Client is not valid/enabled"

I've logged out and into the app successfully on my phone. This began in the middle of the day yesterday so nothing else should have changed.

Chris

hepcat72 commented 10 months ago

Sheesh. Yeah, I have 403's since yesterday as well, but my response is:

22 Aug 15:13:13 - [error] [Life360-Server:Life360-Server] Life360 server error getting circles: 403 Error: Request failed with status code 403 undefined
hepcat72 commented 10 months ago

Restarted node-red, now I see the client is not valid/enabled error.

hepcat72 commented 10 months ago

Again, people smarter than me already fixed it elsewhere. I now have my instance running. I will push an update shortly.

hepcat72 commented 10 months ago

They changed the port on which it runs and this time changing the client secret was necessary.

hepcat72 commented 10 months ago

I now feel like they're actively working on the API, so I somewhat expect this to keep happening as they work on their code...

hepcat72 commented 10 months ago

Before I push out a new version, you can make the changes yourself. Change:

const LIFE360_API = "https://api-cloudfront.life360.com/v3"

to:

const LIFE360_API = "https://api-cloudfront.life360.com:443/v3"

and change:

const LIFE360_CLIENT_SECRET = "cFJFcXVnYWJSZXRyZTRFc3RldGhlcnVmcmVQdW1hbUV4dWNyRUh1YzptM2ZydXBSZXRSZXN3ZXJFQ2hBUHJFOTZxYWtFZHI0Vg==";

to:

const LIFE360_CLIENT_SECRET = "Y2F0aGFwYWNyQVBoZUtVc3RlOGV2ZXZldnVjSGFmZVRydVl1ZnJhYzpkOEM5ZVlVdkE2dUZ1YnJ1SmVnZXRyZVZ1dFJlQ1JVWQ==";
ctreischman commented 10 months ago

I made the change. What is the best way to restart nodered without restarting my computer?

On Wed, Aug 23, 2023 at 9:42 AM Robert Leach @.***> wrote:

Before I push out a new version, you can make the changes yourself. Change:

const LIFE360_API = "https://api-cloudfront.life360.com/v3"

to:

const LIFE360_API = "https://api-cloudfront.life360.com:443/v3"

and change:

const LIFE360_CLIENT_SECRET = "cFJFcXVnYWJSZXRyZTRFc3RldGhlcnVmcmVQdW1hbUV4dWNyRUh1YzptM2ZydXBSZXRSZXN3ZXJFQ2hBUHJFOTZxYWtFZHI0Vg==";

to:

const LIFE360_CLIENT_SECRET = "Y2F0aGFwYWNyQVBoZUtVc3RlOGV2ZXZldnVjSGFmZVRydVl1ZnJhYzpkOEM5ZVlVdkE2dUZ1YnJ1SmVnZXRyZVZ1dFJlQ1JVWQ==";

— Reply to this email directly, view it on GitHub https://github.com/hepcat72/node-red-contrib-life360/issues/18#issuecomment-1690093752, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASQVTLY7H6I2DLFXU3ZLZCDXWYJGFANCNFSM6AAAAAA33LUID4 . You are receiving this because you authored the thread.Message ID: @.***>

ctreischman commented 10 months ago

Success! The changes worked. Thanks again for your support.

On Wed, Aug 23, 2023 at 9:42 AM Robert Leach @.***> wrote:

Before I push out a new version, you can make the changes yourself. Change:

const LIFE360_API = "https://api-cloudfront.life360.com/v3"

to:

const LIFE360_API = "https://api-cloudfront.life360.com:443/v3"

and change:

const LIFE360_CLIENT_SECRET = "cFJFcXVnYWJSZXRyZTRFc3RldGhlcnVmcmVQdW1hbUV4dWNyRUh1YzptM2ZydXBSZXRSZXN3ZXJFQ2hBUHJFOTZxYWtFZHI0Vg==";

to:

const LIFE360_CLIENT_SECRET = "Y2F0aGFwYWNyQVBoZUtVc3RlOGV2ZXZldnVjSGFmZVRydVl1ZnJhYzpkOEM5ZVlVdkE2dUZ1YnJ1SmVnZXRyZVZ1dFJlQ1JVWQ==";

— Reply to this email directly, view it on GitHub https://github.com/hepcat72/node-red-contrib-life360/issues/18#issuecomment-1690093752, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASQVTLY7H6I2DLFXU3ZLZCDXWYJGFANCNFSM6AAAAAA33LUID4 . You are receiving this because you authored the thread.Message ID: @.***>

hepcat72 commented 10 months ago

Good. But since you asked - it depends on how you set up node red. I use pm2 to manage the node-red process, so for me, restarting node-red is pm2 restart node-red.

hepcat72 commented 10 months ago

OK, the update has been published. Version bump to 1.1.2. Might take 5 minutes or so before it shows up in the palette manager.

StoricU commented 9 months ago

Anyone else got the problem again? 25.9.2023, 10:37:42node: Life360 - public@ msg : string[124] "Life360 server error logging in: 403 Error: Request failed with status code 403 Invalid login and password. Please try again"

Have not changed anything and the login and password is working in the app.

hepcat72 commented 9 months ago

I am not currently. Did you change your password? There used to be a problem with unsupported special characters. It's in one of the closed issues I think.

hepcat72 commented 9 months ago

I wonder if Life360 is having issues. I didn't get either of the notifications I am supposed to get about my wife going to work. The app shows where she is though.

hepcat72 commented 9 months ago

~Never mind. My wife forgot her phone, lol.~

Nope... the map showed her at home and I assumed she forgot her phone. It just updated maybe a half hour later. Though for all I know, she just had her phone off or something.

StoricU commented 9 months ago

Strange, since the username and password have been working for several weeks without any issues.. Except the issue that got fixed in 1.1.2. I'll try to change the password later today just to be sure.

hepcat72 commented 9 months ago

My initial error was different from the errors I got after a restart. It wasn't invalid password. Mine was something like "invalid client" or something. It just could be that the presentation of the issue before 1.1.2 is variable... Glad it's fixed for you. No need to change your password if you got it running.