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

Unable to get the file list using REST API in some cases. #10969

Closed
philipbrito opened this issue Jun 1, 2018 · 1 comment
Closed

Unable to get the file list using REST API in some cases. #10969

philipbrito opened this issue Jun 1, 2018 · 1 comment

Comments

@philipbrito
Copy link
Contributor

Description:

When using our REST API to get the file list from a channel, sometimes the following message is show:
Cannot destructure property username of 'undefined' or 'null'

Note that in fact a bad request (400) is thrown and the API comes with the following result:
{"success":false,"error":"Cannot destructure property username of 'undefined' or 'null'."}

Server Setup Information:

  • Version of Rocket.Chat Server: 0.65.1 (open.rocket.chat)

Steps to Reproduce:

  1. Using our REST API try to fetch the file list from the General room for example;
  2. The above error message is show.

Expected behavior:

Get the file list successful.

Actual behavior:

Unable to get the file list due to above error.

@rafaelks
Copy link
Contributor

rafaelks commented Jun 2, 2018

@MarcosSpessatto I just noticed that this is happening because some data is corrupted. If we limit the amount of results to 20 for example, it'll return just fine.

Also, let's add this to a hotfix release please.

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

No branches or pull requests

3 participants