自己部署的开源版调用SDK的异步运行工作流报错
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start with org.springblade.plugin.ai.coze.AsyncRunRetWorkflowExample.java at line 44 and follow the stack trace into WorkflowRunHistoryService.retrieve and Utils.execute. Reproduce the asynchronous workflow call and investigate the reported missing session_key in the cookie. Done means the workflow history request no longer fails with authentication error, with the required authentication context documented or verified.
Written by the indexing model from the issue text.
Description
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by retrofit2.Platform (file:/Users/apple/apache-maven-3.9.0/repository/com/squareup/retrofit2/retrofit/2.9.0/retrofit-2.9.0.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of retrofit2.Platform
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
executeID:7553542408210743296
14:49:12.801 [main] WARN com.coze.openapi.service.service.APIResponseCallAdapter - API error: 700012006 authentication failed: missing session_key in cookie
Exception in thread "main" java.lang.RuntimeException: CozeApiException(code=700012006, msg=authentication failed: missing session_key in cookie, logID=null)
at com.coze.openapi.service.utils.Utils.execute(Utils.java:58)
at com.coze.openapi.service.service.workflow.WorkflowRunHistoryService.retrieve(WorkflowRunHistoryService.java:26)
at org.springblade.plugin.ai.coze.AsyncRunRetWorkflowExample.main(AsyncRunRetWorkflowExample.java:44)
Caused by: CozeApiException(code=700012006, msg=authentication failed: missing session_key in cookie, logID=null)
at com.coze.openapi.service.service.APIResponseCallAdapter$1.execute(APIResponseCallAdapter.java:60)
at com.coze.openapi.service.utils.Utils.execute(Utils.java:36)
... 2 more
- Dominant language
- Java
- Stars
- 214
- Forks
- 97
- PR merge metrics
- No merged PRs in 30d
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from coze-dev/coze-java
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
PCMConfig类中缺少关键属性Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
-
sdk 和官方文档不一致Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
All issues in coze-dev/coze-java
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
OpenAPITools/openapi-generator#25014 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openhab/openhab-core#5847 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
apache/parquet-java#3820 ·
Maintainers usually reply within 1 day