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

常驻进程使用时,AccessToken无法自动刷新 #3

Open
dyspres opened this issue Jul 25, 2018 · 0 comments
Open

常驻进程使用时,AccessToken无法自动刷新 #3

dyspres opened this issue Jul 25, 2018 · 0 comments

Comments

@dyspres
Copy link

dyspres commented Jul 25, 2018

AccessToken被存到了Api实例属性里,但是Api实例属性没有超时时间,导致常驻进程实例化一次后,accessToken就被赋值了,过期了也不会重新刷新,此时用过期的accessToken请求微信api,返回错误代码42001。42001不会触发重新刷accessToken的操作,但是如果触发刷新accessToken的操作,在多进程环境下,会变成竞争不断刷新accessToken的情况。

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

1 participant