临时网络故障的情况下,重试 2 次失败就直接执行了 token cleared

Open Beginner friendly
#2,936 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
66/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
go

Research direction

Find the uat-client refresh-token retry and cleanup logic, then read how it distinguishes network errors from server responses. Check the tests covering retries and token clearing, or add focused coverage if none exists. Done means temporary network failures do not clear the local refresh token, while an explicit invalid_grant response does.

Written by the indexing model from the issue text.

Description

bug

uat-client 在遇到纯网络层错误(如 context deadline exceeded、can't assign requested address)时不应清理本地 refresh token,仅应在服务端明确返回 token 失效(如 invalid_grant)时才清除。

Dominant language
Go
Stars
18.2k
Forks
1.4k
Avg merge
1d 3h
Merged PRs (30d)
18

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from larksuite/cli

All issues in larksuite/cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.