Team to channel conversion error

I am trying to convert a team to a channel but I receive an error: “team-does-not-exist”. I have noticed this error a few more times but does not happen always. I tried both via the interface and the API. Attached are the screenshots of the interface with the error corresponding to the team I am trying to convert. I would like to share the corresponding logs but being a new user this platform does not allow me to.

Hi! Sorry for the late response here.

Please, always provide what version you are running and all the template required infos :slight_smile:

This was probably fixed in 5.4. For reference

Let me know if this helps!

Thanks!

Hi @dudanogueira, not a problem.

I should have added the details to the post itself. Tried editing it later but I do not see an option to do so. Anyway, following are the details,

Steps to reproduce:

Reproduction is difficult, given that there are several teams created that were easily converted to channel without any issue. The process to create the channel is as follows,

  1. Create a team with three users (User 1, User 2, Admin). API used: /teams.create, type: 0
  2. Call the API /teams.convertToChannel to convert the team to channel. The team name is used to perform this operation. (Also tried with team_id after the failure but it did not work).

Expected behavior:

The team should be converted to a channel.

Actual behavior:

I receive an error: “team-does-not-exist”.

Server Setup Information:

  • Version of Rocket.Chat Server: 4.8.7 (also updated to 5.4.0, the issue remains as is)
  • Operating System: Ubuntu 20.04
  • Deployment Method: Snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog: As per Snap installation
  • NodeJS Version: As per Snap installation
  • MongoDB Version: As per Snap installation

Client Setup Information

  • Desktop App or Browser Version: Primary - API call (Python), Firefox, Chrome
  • Operating System: Ubuntu 20.04