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

Show descriptive error when Fanout is not enabled

Đang mở Phù hợp với người mới
#116 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
75/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
tooling

Hướng nghiên cứu

Bắt đầu tại các entry point handoff_fanout và createFanoutHandoff, sau đó so sánh cách xử lý của chúng với implementation tham chiếu của Go SDK trong PR 275. Xử lý trạng thái Unsupported của nền tảng và xác minh rằng các lệnh gọi trên các service không có Fanout hoặc WebSockets tạo ra thông báo hỗ trợ mang tính mô tả thay vì lỗi chung chung.

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

Mô tả

Summary

When handoff_fanout / createFanoutHandoff is called on a service that does not have Fanout enabled, the platform now returns a specific status code indicating the feature is not available. The SDK should catch this and surface a clear, actionable error message to the developer rather than a generic/opaque failure.

Expected behavior

When a developer calls the fanout handoff on a service without Fanout enabled, they should receive an error with a message like:

"Fanout or WebSockets are not enabled on this service; please contact support for help"

Current behavior

The SDK returns a generic error (or empty error) with no indication of what went wrong or how to fix it.

Reference implementations

Go SDK: https://github.com/fastly/compute-sdk-go/pull/275
Checks for the Unsupported status from the redirect_to_grip_proxy / redirect_to_websocket_proxy hostcalls and return a specific error variant with the descriptive message.

Ngôn ngữ chính
Python
Star
5
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

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

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 fastly/compute-sdk-python

Tất cả issue của fastly/compute-sdk-python

Issue tương tự

Thêm issue về Python

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.