question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I can't reliably upload files.

See original GitHub issue

I’m trying to use the webui to upload batches of files into a folder/directory but that fails red X’s.

To Reproduce Steps to reproduce the behavior:

  1. Go to a folder.
  2. Click on ‘+Import’
  3. Pick ‘File’
  4. Select multiple files and confirm

Expected behavior I expect that the files will take a short time to upload to the server and I should receive visual confirmation.

Firefox console output:

Error: Promised response from onMessage listener went out of scope chrome.js:92:30
This site appears to use a scroll-linked positioning effect. This may not work well with asynchronous panning; see https://firefox-source-docs.mozilla.org/performance/scroll-linked_effects.html for further details and to join the discussion on related tools and features! bafybeihcyruaeza7uyjd6ugicbcrqumejf6uf353e5etdkhotqffwtguva
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:5001/api/v0/stats/bw. (Reason: CORS request did not succeed).

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:5001/api/v0/swarm/peers?verbose=true&timeout=10000ms. (Reason: CORS request did not succeed).

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:5001/api/v0/add?stream-channels=true&pin=false&wrap-with-directory=false&progress=false. (Reason: CORS request did not succeed).

Uncaught (in promise) HTTPError: 
    Babel 3
        o
        t
        exports
    n error.js:24
    e core.js:91
    l runtime.js:63
    _invoke runtime.js:293
    x runtime.js:118
    Babel 6
    O core.js:73
    e http.js:147
    l runtime.js:63
    _invoke runtime.js:293
    x runtime.js:118
    Babel 6
    value 5.46be50cc.chunk.js:2
    fetch core.js:192
    value http.js:175
    t add-all.js:36
    l runtime.js:63
    _invoke runtime.js:293
    x runtime.js:118
    Babel 6
    e index.js:9
    l runtime.js:63
    _invoke runtime.js:293
    x runtime.js:118
    Babel 4
    a index.js:9
    R actions.js:603
    n actions.js:278
    l runtime.js:63
    _invoke runtime.js:293
    x runtime.js:118
    Babel 4
    e utils.js:87
    l runtime.js:63
    _invoke runtime.js:293
    x runtime.js:118
    Babel 4
construct.js:19:20

And I’m getting some weirder and maybe more useful output in Chrome.

Desktop

  • OS: Manjaro Linux, kernel 5.10
  • Browser Firefox
  • Version 94

Additional context

I’m using a remote web server and forwarding the ports ‘5001’, ‘8080’ (which isn’t working correctly), ‘3000’ and ‘4001’ to my laptop.

The daemon is running on a 500GB Storage VPS from Time4VPS and it’s running Debian 9 with an ancient 2.6.32 kernel on OpenVZ 6.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
SgtPookicommented, Feb 10, 2022

@holdengreen Thanks for the detailed information about your remote server and daemon.

You say that you’re forwarding ports, but you say “(which isn’t working correctly).” Can you clarify what you mean by this? Also, I see CORS errors in the output. Did you follow the instructions at https://github.com/ipfs/ipfs-webui#configure-ipfs-api-cors-headers ?

0reactions
github-actions[bot]commented, Apr 21, 2022

This issue was closed because it is missing author input.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting file upload problems - UK Copyright Service
Make sure that you can open and view the file you are trying to upload. If you cannot, the file may be corrupted....
Read more >
Can't upload files: A file problem is blocking all uploads
1. Open the OneDrive sync folder, input the problematic file name .lock or lock in the search box in the upper right corner...
Read more >
12 Easy Ways to Fix Google Drive Upload Failed Issue in 2022
Way 1: Check Google Drive Status ... Google Drive is impeccable in terms of operation, but the service status is a concern. Thus,...
Read more >
I Can't Upload My Files - Strikingly Help Center
Step 1: Check your file · Step 2: Exit the editor and try again · Step 3: Check if it's the browser issue...
Read more >
They all shall pass: a guide to handling large file uploads
Possible solutions: 1) Set up multiple upload streams. 2) Use a distributed storage network and upload files to the closest data center. All ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found