Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

使用jwt鉴权方式方式跑工作流报错

Open
#95 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java

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.

Description

背景

使用代码循环调用工作流接口运行大概1000次左右(代码中有sleep,确认非QPS问题)

问题表现

前面几百次运行没什么问题,到了后面几十次直接报错。
报错内容为:

Image

即jwd的token失效。

问题分析:

目前怀疑jar包刷新ttl时间差问题,
先记录下,待扒源码后补充。

问题补充

为coze-api的jar包0.3.1新暴漏的问题,之前的jar为0.3.0并未出过类似的问题

Dominant language
Java
Stars
214
Forks
97
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the 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 coze-dev/coze-java

All issues in coze-dev/coze-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.