RocketChat / RocketChat/Rocket.Chat

unexpected end of stream

Open
#30,492 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

when I called api/rooms.upload with restapi, continuous call in ReactNative use RNFetchBlob, it respond Stream Closed.
Rocket.Chat 5.4.5
React Native 0.71.5

RNFetchBlob.fetch(method, url, headers, formData)
.then(res => {
store.dispatch({
type: 'SET_ISLOADING',
data: false,
});
res.flush();
})
.catch(err => {
store.dispatch({
type: 'SET_ISLOADING',
data: false,
});
console.log(err);
Toast.info({ content: 'upload error', duration: 1 });
});

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the continuous api/rooms.upload call using React Native 0.71.5 and RNFetchBlob against Rocket.Chat 5.4.5, then trace where the response reports "Stream Closed." Done means identifying and fixing the unexpected end-of-stream behavior and confirming repeated uploads complete successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native
Domain
api, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.