question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Works initially, but after some time requests fail & return 'token is expired' message

See original GitHub issue

I am running bluelinky on a raspberry pi 4, using this code to start a web daemon listening for commands. It works great when I first launch it, but after some period of time commands stop working and I get this error back instead:

/lock 192.168.1.99 token is expired, refreshing access token TypeError: Cannot read property 'RESPONSE_STRING' of null at Vehicle.<anonymous> (/home/pi/Documents/node_modules/bluelinky/dist/index.js:149:34) at Generator.next (<anonymous>) at fulfilled (/home/pi/Documents/node_modules/bluelinky/dist/index.js:52:58) at processTicksAndRejections (internal/process/task_queues.js:93:5)

I don’t know what the exact timeout for this is. I’m sure it’s at least an hour, because I’ve seen commands succeed nearly an hour after starting it.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
NeighborGeekcommented, Dec 2, 2019

Looks like that did it. Thanks!

0reactions
Hacksorecommented, Nov 30, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Token Expired - JSON REST API - Error Code - Stack Overflow
Show activity on this post. I've got a JSON REST API. There is a handshake that will give you a token that is...
Read more >
Solved: OAuth Refresh token has expired after 90 days
The Microsoft documentation https://docs.microsoft.com/en-us/graph/auth-overview says that an OAuth Refresh token should only expired if it has been inactive ...
Read more >
Refresh Tokens - OAuth 2.0 Simplified
When you initially received the access token, it may have included a refresh token as well as an expiration time like in the...
Read more >
New refresh token is not used when refreshing session #1187
According to OAuth2 specification RFC6749, the Authorization Server can (optionally) return a new refresh token when a refresh token is used ...
Read more >
Refresh Tokens in ASP.NET Core Web Api - The Blinking Caret
There will come a time where the token will expire and the server will ... WriteToken(jwt); //the method is called WriteToken but returns...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found