This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
CANNOT fetch file( bigger than 256k) in browser. #1667
Closed
Description
- Version: 0.33.0-rc.3
- Platform: chrome 69.0.3497.100 32bit
- Subsystem:
Type: Question
Severity: Medium
Description:
use the Exchange files between the browser, upload some files to one page's worksapce, i can fetch the fie which is smaller than 256K by enter the CID in other page, BUT can not fetch the file bigger than 256K.
Steps to reproduce the error:
- setup local signal-server
npm install --global libp2p-webrtc-star
star-signal --port=9090 --host=127.0.0.1
- setup the Exchange files between the browser
- change the js-ipfs config in
app.js
const options = {
EXPERIMENTAL: {
pubsub: true
},
repo: repoPath,
config: {
Addresses: {
Swarm: ['/dns4/192.168.1.107/tcp/8010/wss/p2p-webrtc-star'],
Bootstrap: []
}
}
}
- disable the
pubsub
function appendFile (name, hash, size, data) {
...
// publishHash(hash)
}
- set Nginx
wss:8010 -----> ws:9090
https:8000 -----> http:12345
- start http-server in the example
- open two page
https://192.168.1.107:8000
the pages' Addresses can appear in other's CONNECTED PEERS area each other.
Drag some files to one workspace, then fetch the file by enter the cid in other page.
some files that smaller than 256K can be fetched, but the file that is big(500k or bigger) cannot be fetched.