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

api endpoint channels.list does not accept count and offset anymore #35187

Open
millhaus opened this issue Feb 12, 2025 · 1 comment
Open

api endpoint channels.list does not accept count and offset anymore #35187

millhaus opened this issue Feb 12, 2025 · 1 comment

Comments

@millhaus
Copy link

millhaus commented Feb 12, 2025

Description:

Fetching list of channels via API stopped working recently when using pagination. We get the error must NOT have additional properties [invalid-params] when appending anything to the url.

Steps to reproduce:

  1. curl -X GET -H "X-Auth-Token: <your_token>" -H "X-User-Id: <your id>" https://your_rc_domain/api/v1/channels.list?count=100&offset=20 --> Error

  2. curl -X GET -H "X-Auth-Token: <your_token>" -H "X-User-Id: <your id>" https://your_rc_domain/api/v1/channels.list --> Success, but with default count

Expected behavior:

...
  ],
  "count": 100,
  "offset": 20,
  "total": 100,
  "success": true
}

Actual behavior:

{
  "success": false,
  "error": "must NOT have additional properties [invalid-params]",
  "errorType": "invalid-params"
}

Server Setup Information:

  • Version of Rocket.Chat Server: 7.0.3
  • License Type: Community
  • Number of Users: 933
  • Operating System: runs on OpenShift Conatinaer Platform
  • Deployment Method:
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: v20.17.0
  • MongoDB Version: 8.0.4

Client Setup Information

  • Desktop App or Browser Version:
  • Operating System:

Additional context

Administration > Workspace > Settings > General > REST API > Allow Getting Everything is ON

Relevant logs:

@reetp
Copy link

reetp commented Feb 12, 2025

I seem to remember something similar occurring and I think it might have been fixed but I can't find it.

Please test on latest 7.3.1 as of today and let us know.

You can also test from here with the api explorer:

https://developer.rocket.chat/apidocs/get-channel-list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants