agentscope-ai / agentscope-ai/agentscope

[Bug]:crypto is not defined

Đang mở
#1,025 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
stale-issue
Ngôn ngữ chính
Python
Star
31.5k
Fork
3.5k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
95

Mô tả

**AgentScope is an open-source project. To involve a broader community, we recommend asking your questions in English.**

**Describe the bug**
使用as_studio, 与创建的agent(默认会有一个Friday)对话时, 提示crypto is not defined

**To Reproduce**
Steps to reproduce the behavior:

....

**Expected behavior**
A clear and concise description of what you expected to happen.

**Error messages**
D:\SoftwareInstalled\Nodejs\node_global\node_modules\@agentscope\studio\dist\server\src\trpc\socket.js:310
const replyId = crypto.randomUUID();
^

ReferenceError: crypto is not defined

**Environment (please complete the following information):**

- AgentScope Version: 1.0
- Python Version: 3.11
- OS: windows

**Additional context**
解决方法:

在 @agentscope\studio\dist\server\src\trpc\socket.js 文件中上方加入代码
// 引入Node.js内置的crypto模块
const crypto = require('crypto');

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.