Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

'charmap' codec can't encode character '\U0001f680' in position 4: character maps to <undefined>

Đang mở
#2,010 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
aws, python
Lĩnh vực
backend, cli

Hướng nghiên cứu

Tái hiện lỗi trên Windows bằng các lệnh AgentCore CLI đã được ghi lại và kiểm tra MyAgent/.venv/Lib/site-packages/bedrock_agentcore/runtime/app.py tại _sync_stream_with_error_handling, xung quanh dòng 945. Theo dõi cách văn bản phản hồi được truyền theo luồng được ghi hoặc mã hóa, sau đó xác minh rằng bản demo getting-started xử lý ký tự 🚀 trên Windows mà không gặp lỗi Unicode.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug
Description

Running the bare AgentCore getting-started demo produces a Unicode error:

'charmap' codec can't encode character '\U0001f680' in position 4: character maps to

Steps to Reproduce

Exactly following Get started with the AgentCore CLI:

  1. npm install -g @aws/agentcore
  2. agentcore create --name MyAgent --framework Strands --protocol HTTP --model-provider Bedrock --memory none
  3. In MyAgent/model/load.py, change the model:

    return BedrockModel(model_id="global.amazon.nova-2-lite-v1:0")

  4. cd MyAgent
  5. agentcore dev
  6. Enter a question; e.g. "What are the highlights of the uv package manager for Python?"
Expected Behavior

The model returns a response with no error.

Actual Behavior

The uv package manager for Python is an extremely fast, all-in-one tool that simplifies Python development by replacing multiple tools with a single, high-performance solution. Here are the key highlights of uv:

🚀 **Error: 'charmap' codec can't encode character '\U0001f680' in position 4: character maps to <undefined>
CLI Version

0.27.0

Operating System

Windows

Additional Context

Initial searches indicated this is related to Python. In any case, in an enterprise framework the first-steps demo should run without issue, across platforms.

From experience, I would guess that one or more layer is making assumptions about the system charset rather than being explicit about which charset is needed.

…

Looking at the console stack trace, the error seems to originate in: MyAgent\\app\\MyAgent\\.venv\\Lib\\site-packages\\bedrock_agentcore\\runtime\\app.py:_sync_stream_with_error_handling:945

Ngôn ngữ chính
TypeScript
Star
291
Fork
96
Merge trung bình
20 giờ 50 phút
Pull request đã merge (30 ngày)
214

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của aws/agentcore-cli

Tất cả issue của aws/agentcore-cli

Issue tương tự

Thêm issue về TypeScript

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.