使用jwt鉴权方式方式跑工作流报错
Open
- Dominant language
- Java
- Stars
- 214
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
# 背景
使用代码循环调用工作流接口运行大概1000次左右(代码中有sleep,确认非QPS问题)
# 问题表现
前面几百次运行没什么问题,到了后面几十次直接报错。
报错内容为:

即jwd的token失效。
# 问题分析:
目前怀疑jar包刷新ttl时间差问题,
先记录下,待扒源码后补充。
# 问题补充
为coze-api的jar包0.3.1新暴漏的问题,之前的jar为0.3.0并未出过类似的问题
Contributor guide
Research direction
Start by reproducing the workflow API loop described in the issue, including the sleep and roughly 1,000 calls, using coze-api jar 0.3.1. Compare its JWT behavior with jar 0.3.0 and inspect the token TTL refresh path; done means the long-running loop no longer fails with an expired-token error, with a regression check for the affected version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100