Example shell script seems to get into a weird cookie state #80
ryanseddon
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for the project! I've been using your example shell script to query my powerwall and auth will work fine if there isn't already a cookie or the cookie is still valid but it seems the expiry is quite low and only after an hour will it reject with:
{ "code": 401, "message": "Token Expired" }Running the script again seems to go through the
create_cookiefunction but this time it rejects the request stating it has anInvalid bearer token:{ "code": 401, "error": "User session not found from [token]", "message": "Invalid bearer token" }It's not until I manually remove the cookie text file that it'll authenticate and work again? Any ideas whats going on here?
Beta Was this translation helpful? Give feedback.
All reactions