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

sts client在复用的情况下,会导致请求收到403错误 #84

Open
qshuai opened this issue May 25, 2023 · 0 comments
Open

sts client在复用的情况下,会导致请求收到403错误 #84

qshuai opened this issue May 25, 2023 · 0 comments

Comments

@qshuai
Copy link

qshuai commented May 25, 2023

客户端初始化(stsClient的生命周期和服务的一致,也就是该客户端在复用的情况下):

stsClient, err = sts.NewClient(bosAK, bosSK)

错误信息:
当服务刚启动、和启动后的一段时间内(大约几个小时),从bos server端获取sts token都正常;但是时间超过一定时间后,接口就会报错,报错内容如下:

[Code: InvalidRequest; Message: authenticate failed: Fail to authn user: Fail to check timestamp: time expired; RequestId: 4c4d8a97-e48c-xx-933c-xxxx]

报错的接口,及调用方式

stsClient.GetSessionToken(int(duration.Seconds()), reqBody)

是否可复现:必现

qshuai pushed a commit to qshuai/bce-sdk-go that referenced this issue May 25, 2023
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