Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetOrCreateChannel failed with error: "Cannot create a channel with a '!' in the ID, this is a reserved character. #1098

Open
Advait1306 opened this issue Feb 18, 2023 · 4 comments
Labels
Backend Team The backend team is in charge of this issue

Comments

@Advait1306
Copy link

Advait1306 commented Feb 18, 2023

I was testing my code to create channels and encountered this error. Note that I'm not sending an id explicitly while creating a channel, the documentation says that it will create one on its own.

Steps to reproduce:

  1. Create a channel from a node js server.
  2. Hard Delete the channel from get stream dashboard.
  3. Try creating a channel with the same member & without restarting the server.

This issue seems to go away as soon as I restart my server.

Stack:

  1. Flutter
  2. Node js (firebase functions)

Code:

channel creation:

const channel = chatClient.channel("messaging", {
      members: members,
      created_by_id: "Matchmaker",
    });

await channel.create();

Error:

 code: 4,
 message: `GetOrCreateChannel failed with error: "Cannot create a channel with a '!' in the ID, this is a reserved character."`,
 StatusCode: 400,
 duration: '0.00ms',
 more_info: 'https://getstream.io/chat/docs/api_errors_response',
 details: []
@vanGalilea vanGalilea added the Backend Team The backend team is in charge of this issue label Mar 8, 2023
@yaziine
Copy link
Contributor

yaziine commented Mar 8, 2023

I was able to reproduce it, thank you for opening a ticket. I will let you know when it is fixed.

@Advait1306
Copy link
Author

@yaziine any updates on this?

@JerryId
Copy link

JerryId commented Jul 13, 2023

I was reproduce it error after using

await channel.delete()

and Create or watch the same member
here my question about it

@andreaslydemann
Copy link

andreaslydemann commented Aug 13, 2024

This is still an issue. When you delete a channel and create it again with the same members, you get this error. If you wait 30 minutes after deleting, then you can create it without issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Team The backend team is in charge of this issue
Projects
None yet
Development

No branches or pull requests

5 participants