Unexpected FeedGroup already exists error when recreating a deleted FeedGroup
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the sequence shown with DeleteFeedGroupAsync and GetOrCreateFeedGroupAsync using the reported SDK version and the ID "polls3". Check the API behavior and documentation for deleted FeedGroup IDs; done means the reuse behavior is resolved or the restriction is clearly documented.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- C#
- Stars
- 2
- Forks
- 0
- Avg merge
- 6h 55m
- Merged PRs (30d)
- 19
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GetStream/getstream-net
-
Difficulty 4/5 1-2 days Newbie friendliness 35/100
GetStream/getstream-net#100 · 9 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
Maintainers usually reply within 1 day
All issues in GetStream/getstream-net
Similar issues
-
Unit converter reads out of bounds when the saved UnitConverterPreferences setting is malformedOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
microsoft/calculator#2532 ·
-
area: scaffold status: needs-tests
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
provider:flagd type:fix
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
open-feature/dotnet-sdk-contrib#789 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
NimblePros/Metronome#23 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jsboige/CoursIA#28504 · 3 comments ·
Maintainers usually reply within 1 day