storj-archived / bridge

Deprecated. Access the Storj network via simple REST API.
https://storj.io
GNU Affero General Public License v3.0
77 stars 44 forks source link

Request failed with status code: 0 - when uploading to api.staging.storj.io #601

Closed Th3Van closed 6 years ago

Th3Van commented 6 years ago

Package Versions

Replace the values below using the output from npm list storj-bridge.

{"title":"Storj Bridge",
"version":"8.0.0",
"description":"Access the Storj network using a simple REST API.",
"x-protocol-version":"1.2.0-STAGING",
"x-core-version":"8.7.2"}

Expected Behavior

Please describe the program's expected behavior. Include an example of your usage code in the back ticks below if applicable.

To upload files without getting request errors/timeouts.

Actual Behavior

Please describe the program's actual behavior. Please include any stack traces or log output in the back ticks below.

It takes more than 60 sec to upload a single 101 Byte file.

root@server030:/Intelp37002g101/tmp# openssl rand 101 > test101.tmp   
root@server030:/Intelp37002g101/tmp# /disk002/storj-v2.0.0-beta3 -d -l 4 --url https://api.staging.storj.io  upload-file 8822aba58688bdc3e3270828 test101.tmp
{"message": "Pending work count: 1", "level": 4, "timestamp": 1526682689661}
{"message": "Checking if bucket id [8822aba58688bdc3e3270828] exists", "level": 3, "timestamp": 1526682690373}
{"message": "Pending work count: 1", "level": 4, "timestamp": 1526682690373}
{"message": "Checking if file name [test101.tmp] already exists...", "level": 3, "timestamp": 1526682690373}
{"message": "Request failed with status code: 0", "level": 1, "timestamp": 1526682750386}
...
{"message": "Successfully sent exchange report for shard 0", "level": 3, "timestamp": 1526682756361}
{"message": "fn[cleanup_state] - Cleaning up shard 0", "level": 4, "timestamp": 1526682756361}
{"message": "fn[cleanup_state] - Cleaning up pointers 0", "level": 4, "timestamp": 1526682756361}
Upload Success! File ID: 1ed9065ac0bae5050e373a20

Steps to Reproduce

Please include the steps the reproduce the issue, numbered below. Include as much detail as possible.

  1. Download libstorj-2.0.0-beta3
  2. openssl rand 101 > test101.tmp
  3. Try to upload the 101 byte file to staging using --url https://api.staging.storj.io
phthano-zz commented 6 years ago

This should be resolved. Please reopen if it is not