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

天翼云盘客户端 刷新token有问题 #6992

Closed
4 tasks done
OctLan opened this issue Aug 12, 2024 · 2 comments · Fixed by #6994
Closed
4 tasks done

天翼云盘客户端 刷新token有问题 #6992

OctLan opened this issue Aug 12, 2024 · 2 comments · Fixed by #6994
Labels
bug Something isn't working

Comments

@OctLan
Copy link

OctLan commented Aug 12, 2024

Please make sure of the following things

  • I have read the documentation.
    我已经阅读了文档

  • I'm sure there are no duplicate issues or discussions.
    我确定没有重复的issue或讨论。

  • I'm sure it's due to AList and not something else(such as Network ,Dependencies or Operational).
    我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

  • I'm sure this issue is not fixed in the latest version.
    我确定这个问题在最新版本中没有被修复。

AList Version / AList 版本

v3.36.0

Driver used / 使用的存储驱动

天翼云盘客户端

Describe the bug / 问题描述

用s3接口使用天翼云盘 后一段时间重新使用接口报错
serve s3: code: InvalidSessionKey ,msg: sessionKey=bf6efc95-7a9c-4f5a-8d2b-1963d7415e45_family,invalid sessionKey, requestId=a31b0a1d-5ca6-4404-8a21-cc7b05fd7a1c

查看了下代码
天翼云盘驱动 alist/drivers/189pc/utils.go
func (y *Cloud189PC) refreshSession() (err error)
这里 y.tokenInfo.UserSessionResp = userSessionResp 感觉应该是 y.tokenInfo = userSessionResp
另外 refreshSession 后 需要重新 发送请求 y.request(url, method, callback, params, resp) 是否少了参数 isFamily

Reproduction / 复现链接

Config / 配置

默认配置

Logs / 日志

No response

@OctLan OctLan added the bug Something isn't working label Aug 12, 2024
Copy link

welcome bot commented Aug 12, 2024

Thanks for opening your first issue here! Be sure to follow the issue template!

@OctLan OctLan changed the title 天翼云盘 刷新token有问题 天翼云盘客户端 刷新token有问题 Aug 12, 2024
@foxxorcat
Copy link
Contributor

这里 y.tokenInfo.UserSessionResp = userSessionResp 感觉应该是 y.tokenInfo = userSessionResp
这个没问题,struct是嵌套关系
这个问题是错误判断漏掉了对 code 代码的判断,(由于api是不同时间段获取的,导致错误返回多种多样,漏了这部分。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants