# Keep getting error now: "The state token is invalid or has expired. Please try again."

**URL:** <https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150>\
**Category:** Ask Anything\
**Created:** [July 10, 2024, 3:51pm UTC](https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150 "2024-07-10T15:51:38Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![DDXdesign](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tiller.com/ddxdesign/32/14409_2.png) [@DDXdesign](https://community.tiller.com/u/DDXdesign)\
**Post date:** [July 10, 2024, 3:51pm UTC](https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150/1 "2024-07-10T15:51:38Z")

</div>

I searched and the last mention of this was last year. I can’t even use the damn thing now because every day this week I just get “The state token is invalid or has expired. Please try again.” Right when I try to log in from the sidebar. Nothing else has changed except this new error.

EDIT: if I keep trying it eventually comes up. sigh.

I keep telling myself it’s inexpensive, but it’s still a piece of software we are PAYING for.

---

<div class="post-metadata">

**Author:** ![Clint.C](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tiller.com/clint.c/32/17291_2.png) [@Clint.C](https://community.tiller.com/u/Clint.C)\
**Post date:** [July 10, 2024, 5:23pm UTC](https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150/2 "2024-07-10T17:23:32Z")

</div>

@DDXdesign Are you using Google Sheets or MS Excel?

---

<div class="post-metadata">

**Author:** ![DDXdesign](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tiller.com/ddxdesign/32/14409_2.png) [@DDXdesign](https://community.tiller.com/u/DDXdesign)\
**Post date:** [July 10, 2024, 6:33pm UTC](https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150/3 "2024-07-10T18:33:12Z")

</div>

@Clint.C Google Sheets, sorry

---

<div class="post-metadata">

**Author:** ![Clint.C](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tiller.com/clint.c/32/17291_2.png) [@Clint.C](https://community.tiller.com/u/Clint.C)\
**Post date:** [July 10, 2024, 7:15pm UTC](https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150/4 "2024-07-10T19:15:27Z")

</div>

What OS and browser are you using? I would assume Windows and Chrome but we have some Mac users too.

Have you already tried clearing the browser cache, rebooting your computer and router?

---

<div class="post-metadata">

**Author:** ![DDXdesign](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tiller.com/ddxdesign/32/14409_2.png) [@DDXdesign](https://community.tiller.com/u/DDXdesign)\
**Post date:** [July 10, 2024, 7:28pm UTC](https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150/5 "2024-07-10T19:28:15Z")

</div>

I’m ironically on MS Edge (built on chrome), but on a Mac.

I haven’t tried any of those things, but if I keep trying and it eventually works without doing those things, then those things are not likely to be the culprit.

---

<div class="post-metadata">

**Author:** ![Clint.C](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tiller.com/clint.c/32/17291_2.png) [@Clint.C](https://community.tiller.com/u/Clint.C)\
**Post date:** [July 10, 2024, 10:42pm UTC](https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150/6 "2024-07-10T22:42:28Z")

</div>

Will you got me stumped.

I’m glad to hear it eventually works.

All I can suggests is a few other things I would try to narrow down the cause.

Maybe someone else here has the answer!

---

<div class="post-metadata">

**Author:** ![DDXdesign](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tiller.com/ddxdesign/32/14409_2.png) [@DDXdesign](https://community.tiller.com/u/DDXdesign)\
**Post date:** [July 30, 2024, 12:35am UTC](https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150/7 "2024-07-30T00:35:29Z")

</div>

Almost 3 weeks later, this is still happening.

---

<div class="post-metadata">

**Author:** ![morgan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tiller.com/morgan/32/6841_2.png) [@morgan](https://community.tiller.com/u/morgan)\
**Post date:** [August 1, 2024, 2:45pm UTC](https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150/8 "2024-08-01T14:45:29Z")

</div>

Where are you seeing this error?

---

<div class="post-metadata">

**Author:** ![dmetiller](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@dmetiller](https://community.tiller.com/u/dmetiller)\
**Post date:** [August 1, 2024, 3:05pm UTC](https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150/9 "2024-08-01T15:05:53Z")

</div>

I’ll just chime in to say that this has been happening to me periodically lately. Here’s what happens:

-The sidebar logs itself out.  
-I click on the button to log back-in, which takes me to the general Tiller log-in screen. When I try to log-in with my gmail account, I get the stale token is invalid message.  
-I seem to be able to fix it by going back to my Tiller sheet, reloading the page, and relaunching the sidebar.  
-Not sure why it’s happening, and it doesn’t seem to be predictable when it happens. But it’s new over the last few weeks.

I’m in Sheets on a Mac in Chrome if that’s helpful for diagnosing.

---

<div class="post-metadata">

**Author:** ![morgan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tiller.com/morgan/32/6841_2.png) [@morgan](https://community.tiller.com/u/morgan)\
**Post date:** [August 1, 2024, 4:10pm UTC](https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150/10 "2024-08-01T16:10:59Z")

</div>

Thanks for the details. It might be the auth token (a Google security setting) that logs you out after inactivity or a certain amount of time elapses and requires a close out/re-launch.

---

<div class="post-metadata">

**Author:** ![dharhas](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tiller.com/dharhas/32/13248_2.png) [@dharhas](https://community.tiller.com/u/dharhas)\
**Post date:** [October 25, 2024, 3:58pm UTC](https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150/11 "2024-10-25T15:58:18Z")

</div>

This starting happening to me this morning as well. Using chrome on a Mac.

---

<div class="post-metadata">

**Author:** ![twalane](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tiller.com/twalane/32/16372_2.png) [@twalane](https://community.tiller.com/u/twalane)\
**Post date:** [October 28, 2024, 3:11pm UTC](https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150/12 "2024-10-28T15:11:48Z")

</div>

Hi @dharhas does closing your sheet and re-launching Tiller Money Feeds help?

---

<div class="post-metadata">

**Author:** ![dmetiller](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@dmetiller](https://community.tiller.com/u/dmetiller)\
**Post date:** [October 28, 2024, 8:14pm UTC](https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150/13 "2024-10-28T20:14:05Z")

</div>

I’ve found that it’s not necessary to close the sheet entirely. I’ve starting just closing the sidebar after I’m done refreshing, and then I can reopen it the next day without any issue.

---

<div class="post-metadata">

**Author:** ![dharhas](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tiller.com/dharhas/32/13248_2.png) [@dharhas](https://community.tiller.com/u/dharhas)\
**Post date:** [November 2, 2024, 1:17pm UTC](https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150/14 "2024-11-02T13:17:23Z")

</div>

Looks like some combination of closing the sheet/browser fixes it.

---

<div class="post-metadata">

**Author:** ![twalane](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tiller.com/twalane/32/16372_2.png) [@twalane](https://community.tiller.com/u/twalane)\
**Post date:** [November 4, 2024, 2:23pm UTC](https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150/15 "2024-11-04T14:23:42Z")

</div>

Glad that helped @dharhas 👍🏾

Noted @dmetiller !

---

<div class="post-metadata">

**Author:** ![sasha](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tiller.com/sasha/32/13910_2.png) [@sasha](https://community.tiller.com/u/sasha)\
**Post date:** [December 8, 2024, 6:00pm UTC](https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150/16 "2024-12-08T18:00:01Z")

</div>

Just wanted to let you know that this was happening to me as well and your reply helped. Still have no idea why it was happening.

---

<div class="post-metadata">

**Author:** ![morgan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tiller.com/morgan/32/6841_2.png) [@morgan](https://community.tiller.com/u/morgan)\
**Post date:** [December 11, 2024, 11:02pm UTC](https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150/17 "2024-12-11T23:02:55Z")

</div>

If you don’t close out of the browser session then the authentication token will expire. Google requires that you close out of the sidebar then log back in to provide a fresh authentication token.

---

<div class="post-metadata">

**Author:** ![michael.mallo](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tiller.com/michael.mallo/32/6657_2.png) [@michael.mallo](https://community.tiller.com/u/michael.mallo)\
**Post date:** [December 23, 2024, 2:14pm UTC](https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150/18 "2024-12-23T14:14:54Z")

</div>

It should be possible for the extension to check the expiration of the authentication token and request a new one if it has expired. This check should be performed every time a user clicks the button to login (or skip the check and just always request a new token). This page has some good info: [Handling Google OAuth Refresh Tokens in a Chrome Extension](https://www.xiegerts.com/post/chrome-extension-google-oauth-refresh-token/)

---

<div class="post-metadata">

**Author:** ![morgan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tiller.com/morgan/32/6841_2.png) [@morgan](https://community.tiller.com/u/morgan)\
**Post date:** [December 30, 2024, 3:44pm UTC](https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150/19 "2024-12-30T15:44:28Z")

</div>

Thanks for this resource, I’ve shared it with our team to review.

We do perform a check every time a user clicks the button to login, but when users don’t close out of the add-on after a whole day (maybe over night it’s left open) then that check can’t run.

---

<div class="post-metadata">

**Author:** ![DDXdesign](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tiller.com/ddxdesign/32/14409_2.png) [@DDXdesign](https://community.tiller.com/u/DDXdesign)\
**Post date:** [June 3, 2025, 8:51pm UTC](https://community.tiller.com/t/keep-getting-error-now-the-state-token-is-invalid-or-has-expired-please-try-again/27150/20 "2025-06-03T20:51:45Z")

</div>

My personal expectation of any software doing what tiller does is to just stay open and connected and every time I look at the spreadsheet it’s already fully up to date. There are FAR too many clicks for this to be good UX.
