Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q: auto-refresh? #8

Open
gvdhoven opened this issue Feb 8, 2020 · 1 comment
Open

Q: auto-refresh? #8

gvdhoven opened this issue Feb 8, 2020 · 1 comment

Comments

@gvdhoven
Copy link

gvdhoven commented Feb 8, 2020

My wideq version stops working every now and then, restarting the app resolves this so i assume it is something with expiring tokens; does your version implement something like auto-refreshing if the monitor task fails?

I expect it does; looking at this: https://github.com/ssut/wideq-js/blob/master/lib/core/monitor.ts#L29

But it would be cool if you could confirm.

@ncovercash
Copy link

It looks like it was throwing some other kind of exception – don't remember what – however, adding --unhandled-rejections=strict caused the whole script to start over. Crude, but it worked enough for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants