Git Product home page Git Product logo

Comments (16)

chrisgorgo avatar chrisgorgo commented on August 19, 2024

Same when trying to access: https://openneuro.org/public/datasets (even if not logged in).

from openneuro.

nellh avatar nellh commented on August 19, 2024

I'm not currently seeing this but it is an error we've seen before. The request to SciTran closes with this message:

core_1 | [pid: 14|app: 0|req: 44798/57658] 255.255.255.255 () {42 vars in 749 bytes} [Tue Aug 22 00:45:43 2017] GET /api/projects?metadata=true => generated 2 bytes in 1 msecs (HTTP/2.0 200) 3 headers in 110 bytes (2 switches on core 1)
core_1 | uwsgi_response_write_body_do() TIMEOUT !!!
core_1 | IOError: write error

I think that can only be caused when the client aborted the request mid transfer. The frontend records this error as the XHR request failing. It could be the connection is aborted by the browser, an extension, or your network. Did you run into this error on a bandwidth constrained network?

from openneuro.

chrisgorgo avatar chrisgorgo commented on August 19, 2024

The bandwidth is indeed not superb, but also not too bad. I just checked again and I can load the list of public datasets. It does, however, take 20 seconds to load. For comparison on the same network loading the list of OpenfMRI datasets (https://openfmri.org/dataset/) takes 2 seconds.

I think you are right that the browser must've timeout when waiting for response thus leading to an error (and infinite loading symbol), but I also feel that OpenNeuro is taking much longer to load than other websites. In some conditions (subpar bandwidth) this can lead to silent errors and poor user experience.

Here's a benchmark of my current internet connection: http://beta.speedtest.net/result/6559072469

from openneuro.

nellh avatar nellh commented on August 19, 2024

The endpoint having issues here is about 5MB on production and takes some time to start. We can reduce the size and also serve this data from cache on the server to reduce the major cause of latency and that should eliminate this timeout.

I'll file another issue to not crash the frontend when the request fails.

from openneuro.

chrisgorgo avatar chrisgorgo commented on August 19, 2024

Probably related - I also see slow performance of https://openneuro.org/api/snapshots/projects?metadata=true endpoint which is called when viewing individual datasets. On my current connection it took 2m to load this data leading to suboptimal user experience

from openneuro.

chrisgorgo avatar chrisgorgo commented on August 19, 2024

Running into this issue once again on a new network. The speed is not awesome, but not terrible: http://beta.speedtest.net/result/6644972518 we should be able to support such networks.

from openneuro.

nellh avatar nellh commented on August 19, 2024

@chrisfilo #86 helps a lot with this but as all the dataset features depend on that change, I want to test it carefully before pushing it to production. I just updated dev with that fix. Let me know if you see any issues there, especially around uploading or running jobs.

from openneuro.

chrisgorgo avatar chrisgorgo commented on August 19, 2024

I am still seeing this on dev with poor connection (http://beta.speedtest.net/result/6649453857).

from openneuro.

chrisgorgo avatar chrisgorgo commented on August 19, 2024

Running into this on another connection: http://beta.speedtest.net/result/6652070957 (also on dev https://openneuro.dev.sqm.io/dashboard/datasets )

from openneuro.

chrisgorgo avatar chrisgorgo commented on August 19, 2024

On dev listing my datasets downloads 3.6MB from https://openneuro.dev.sqm.io/api/snapshots/projects?metadata=false&root=true which seems way too much.

from openneuro.

chrisgorgo avatar chrisgorgo commented on August 19, 2024

Another network I was unable to list all of the public datasets (University of Birmingham): http://beta.speedtest.net/result/6659263359

from openneuro.

chrisgorgo avatar chrisgorgo commented on August 19, 2024

I'm at University of Glasgow today and unfortunately still running into this issue. Loading the list of public datasets on prod downloads 17Mb and then times out.

from openneuro.

chrisgorgo avatar chrisgorgo commented on August 19, 2024

After trying a few times I managed to load the page - total payload is 19.9Mb.

from openneuro.

chrisgorgo avatar chrisgorgo commented on August 19, 2024

I'm back in California - the land of really fast internet (tm), but I found this neat guide for simulating slow connections: https://developers.google.com/web/tools/chrome-devtools/network-performance/network-conditions

from openneuro.

nellh avatar nellh commented on August 19, 2024

Lighthouse (mentioned in issue #49) automates that test with headless Chrome. I'm targeting the "page load is fast enough on 3G" audit to consider this fixed (10 seconds max load time for all views on Chrome's throttled 3G setting).

#108 and #109 are the biggest fixes.

from openneuro.

chrisgorgo avatar chrisgorgo commented on August 19, 2024

I am planning to give a demo of the platform on Tuesday in China - how likely is it that this issue will be resolved by then? Fixing #109 would probably deliver the biggest performance boost. @JohnKael

from openneuro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.