# Refresh Tokens Not Working

**URL:** <https://forums.wyze.com/t/refresh-tokens-not-working/303714>\
**Category:** Services & Integrations\
**Tags:** home-assistant, ifttt\
**Created:** [July 7, 2024, 5:03pm UTC](https://forums.wyze.com/t/refresh-tokens-not-working/303714 "2024-07-07T17:03:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![76008d058a4d5c25829f](https://avatars.discourse-cdn.com/v4/letter/7/ccd318/32.png) [@76008d058a4d5c25829f](https://forums.wyze.com/u/76008d058a4d5c25829f)\
**Post date:** [July 7, 2024, 5:03pm UTC](https://forums.wyze.com/t/refresh-tokens-not-working/303714/1 "2024-07-07T17:03:09Z")

</div>

Is it just me? I have been using home assistant integration and it keeps making me log back in. I tried in python using the wyze-sdk package and got the same error. I finally just called the endpoints manually in python using requests and i get the same errors. Below is what I’m getting:

{‘code’: ‘2002’, ‘ts’: 1720371214381, ‘msg’: ‘refresh token is error.’, ‘data’: {}, ‘traceId’: ‘c60d3ea23395529a2e5a9a6683fa01f5’}

---

<div class="post-metadata">

**Author:** ![carverofchoice](https://sea2.discourse-cdn.com/wyze/user_avatar/forums.wyze.com/carverofchoice/32/107068_2.png) [@carverofchoice](https://forums.wyze.com/u/carverofchoice)\
**Post date:** [July 7, 2024, 9:56pm UTC](https://forums.wyze.com/t/refresh-tokens-not-working/303714/2 "2024-07-07T21:56:04Z")

</div>

OMG I had this problem for all of April and May in the SecKatie Wyze HACS API. I had to re-login at least once a day, sometimes more often for more than a month, and I think it was 2 months. Drove me insane.

I’m not entirely sure how I got it fixed as I tried so many things, but eventually after some update, it was finally fixed.

I talked to someone else who was having this issue last year, but they too had theirs suddenly resolve itself one day.

I think mine was actually fixed after a random Home Assistant Update, rather than the Wyze API update. I don’t know if it was the CORE update or OS update, and I don’t know if some of the other million things I tried helped or not, but it eventually got resolved. Wish I could give you more help.

All I can really tell you is that you aren’t the only one who has had this happen. You’re the 3rd person I know of. But I don’t know anyone else having this happen right now. Mine got fixed sometime in May or early June at the latest.

I never saw the error, I just know I had to keep logging back in every day and it was reducing my sanity.

---

<div class="post-metadata">

**Author:** ![76008d058a4d5c25829f](https://avatars.discourse-cdn.com/v4/letter/7/ccd318/32.png) [@76008d058a4d5c25829f](https://forums.wyze.com/u/76008d058a4d5c25829f)\
**Post date:** [July 7, 2024, 10:40pm UTC](https://forums.wyze.com/t/refresh-tokens-not-working/303714/3 "2024-07-07T22:40:15Z")

</div>

Sounds like it is probably the same, i suspect something with my user on the wyze side, but who knows. Hopefully it’ll fix itself soon

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/wyze/user_avatar/forums.wyze.com/system/32/1_2.png) [@system](https://forums.wyze.com/u/system)\
**Post date:** [October 5, 2024, 10:40pm UTC](https://forums.wyze.com/t/refresh-tokens-not-working/303714/4 "2024-10-05T22:40:53Z")

</div>

Closed on October 5, 2024, 10:40pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
