Unexpected FeedGroup already exists error when recreating a deleted FeedGroup
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện chuỗi thao tác được示示 bằng DeleteFeedGroupAsync và GetOrCreateFeedGroupAsync bằng phiên bản SDK được báo cáo và ID "polls3". Kiểm tra hành vi của API và tài liệu đối với các ID FeedGroup đã bị xóa; được xem là hoàn tất khi hành vi tái sử dụng được giải quyết hoặc hạn chế được ghi rõ trong tài liệu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When I delete a FeedGroup using DeleteFeedGroupAsync and then immediately try to recreate one with the same ID using GetOrCreateFeedGroupAsync, I receive a BadRequest error stating that the feed group already exists.
It’s unclear whether this is expected behavior or an API issue — it seems like the deletion should make the ID available again.
code snippet:
// Build the client
var builder = new ClientBuilder()
.ApiKey(apiKey)
.ApiSecret(secret);
var client = builder.Build();
var feedsClient = builder.BuildFeedsClient();
// Create a FeedGroup
var myFeedGroupFirstResponse = await feedsClient.GetOrCreateFeedGroupAsync("polls3", new GetOrCreateFeedGroupRequest()
{
Custom = new Dictionary<string, object>()
{
{ "description", "A feed group for polls" }
}
});
Console.WriteLine($"Feed Group created with ID: {myFeedGroupFirstResponse.Data.FeedGroup.ID}");
// Delete the FeedGroup
await feedsClient.DeleteFeedGroupAsync("polls3");
Console.WriteLine("Deleted existing feed group 'polls3' if it existed.");
// Attempt to recreate the same FeedGroup
var myFeedGroup = await feedsClient.GetOrCreateFeedGroupAsync("polls3", new GetOrCreateFeedGroupRequest()
{
Custom = new Dictionary<string, object>()
{
{ "description", "A feed group for polls" }
}
});
Console.WriteLine($"Feed Group created with ID: {myFeedGroup.Data.FeedGroup.ID}");
Observed Behavior
The second call to GetOrCreateFeedGroupAsync throws:
GetStream.GetStreamApiException: HTTP BadRequest: {"code":4,"message":"GetOrCreateFeedGroup failed with error: \"Feed group with ID \"polls3\" already exists\"","StatusCode":400,"duration":"0.00ms","more_info":"https://getstream.io/chat/docs/api_errors_response","details":[]}
Expected Behavior
After deleting a feed group, I should be able to create another feed group with the same ID — or, if this is intentionally disallowed, the SDK/API documentation should clarify that deletion does not fully release the ID.
Environment
SDK: GetStream.StreamNet 2.1.0
.NET version: .NET 10
cc @itsmeadi
- Ngôn ngữ chính
- C#
- Star
- 2
- Fork
- 0
- Merge trung bình
- 6 giờ 55 phút
- Pull request đã merge (30 ngày)
- 19
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của GetStream/getstream-net
-
Daily integration run is redĐang mở
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 35/100
GetStream/getstream-net#100 · 9 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của GetStream/getstream-net
Issue tương tự
-
Unit converter reads out of bounds when the saved UnitConverterPreferences setting is malformedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
microsoft/calculator#2532 ·
-
Scaffold marks an association as required when its composite foreign key has a nullable columnĐang mởarea: scaffold status: needs-tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
provider:flagd type:fix
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
open-feature/dotnet-sdk-contrib#789 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
NimblePros/Metronome#23 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
jsboige/CoursIA#28504 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày