RocketChat / RocketChat/Rocket.Chat
unexpected end of stream
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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