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
I'm having an issue uploading multiple files via the IPFS RPC when using an nginx reverse proxy. I am using the JS library js-ipfs-api in node. If I upload directly to port 5001 it works fine, but when I add the nginx proxy I get a timeout from the IPFS RPC. Ultimately my motivation is to use the nginx proxy for authentication to the IPFS RPC.
A few notes: I can upload multiple small files, but I start running into this issue when I have a couple files in the 5-7MB range. I am able to upload these files individually however.
git clone https://github.com/pbostrom/ipfs_testcase.git
cd ipfs_testcase
sudo docker-compose up -d
sudo docker run -it --network ipfs_testcase_proxy-tier pbostrom/ipfs_testcase
This will twice attempt to upload 3 files: the first attempt directly to the RPC service on port 5001, the second attempt will go through the nginx reverse proxy. The second attempt should stall and nginx will eventually timeout. nginx logs:
@pbostrom thanks for the report and the awesome work to make reproducing the bug easy. I was despairing a little when I read the issue title. We'll take a look!
Version information:
Client:
js-ipfs-api 26.1.2
running in node.Type:
Bug
Description:
I'm having an issue uploading multiple files via the IPFS RPC when using an nginx reverse proxy. I am using the JS library
js-ipfs-api
in node. If I upload directly to port 5001 it works fine, but when I add the nginx proxy I get a timeout from the IPFS RPC. Ultimately my motivation is to use the nginx proxy for authentication to the IPFS RPC.A few notes: I can upload multiple small files, but I start running into this issue when I have a couple files in the 5-7MB range. I am able to upload these files individually however.
I have created a repo to reproduce: https://github.com/pbostrom/ipfs_testcase
Install docker/docker-compose and run:
This will twice attempt to upload 3 files: the first attempt directly to the RPC service on port 5001, the second attempt will go through the nginx reverse proxy. The second attempt should stall and nginx will eventually timeout. nginx logs:
This may be related to #5168 but I do not see the error
http: invalid Read on closed Body
in any of the logs or responses.The text was updated successfully, but these errors were encountered: