coze-dev / coze-dev/coze-studio
高德地图Workflow execution failure: exec func panic
- Dominant language
- TypeScript
- Stars
- 21.6k
- Forks
- 3.1k
- PR merge metrics
- No merged PRs in 30d
Description
使用高德插件配置service_token之后仍报错。
容器和本地都是能请求通的
{
"$error": "Workflow execution failure: exec func panic, runtime error: invalid memory address or nil pointer dereference \n goroutine 867 [running]:\nruntime/debug.Stack()\n\t/usr/local/go/src/runtime/debug/stack.go:26 +0x64\ngithub.com/coze-dev/coze-studio/backend/pkg/execute.RunWithContextDone.func1.1()\n\t/app/pkg/execute/execute.go:30 +0x3c\npanic({0x4fe87a0?, 0x9371f20?})\n\t/usr/local/go/src/runtime/panic.go:792 +0x124\ngithub.com/coze-dev/coze-studio/backend/domain/plugin/service/tool.(*InvocationArgs).setDefaultValues(0x4001a219a0, {0x637d778, 0x4001168780}, 0x0, {0x4002c832f0, 0x13})\n\t/app/domain/plugin/service/tool/invocation_args.go:277 +0x2ac\ngithub.com/coze-dev/coze-studio/backend/domain/plugin/service/tool.NewInvocationArgs({0x637d778, 0x4001168780}, 0x40021798e8)\n\t/app/domain/plugin/service/tool/invocation_args.go:118 +0x1e8\ngithub.com/coze-dev/coze-studio/backend/domain/plugin/service.(*toolExecutor).execute(0x40016ad8c0, {0x637d778, 0x4001168780}, {0x400067acc0?, 0x4000ddb3b0?}, {0x0, 0x0},"
}
Contributor guide
Research direction
Start with domain/plugin/service/tool/invocation_args.go, especially NewInvocationArgs at line 118 and setDefaultValues at line 277, then review the panic wrapper in pkg/execute/execute.go:30. Reproduce the workflow with the Amap plugin and configured service_token; done means the workflow executes without the nil-pointer panic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100