You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Using our REST API try to fetch the file list from the General room for example;
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.
The text was updated successfully, but these errors were encountered:
@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.
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
usernameof 'undefined' or 'null'."}
Server Setup Information:
Steps to Reproduce:
Expected behavior:
Get the file list successful.
Actual behavior:
Unable to get the file list due to above error.
The text was updated successfully, but these errors were encountered: