Git Product home page Git Product logo

Comments (9)

DisboxApp avatar DisboxApp commented on August 17, 2024

Good catch!
It seems like there are 3 possible solutions to this:

  1. Limiting the upload speed.
  2. Using the retry_after parameter after the blocked request.
  3. Using the x-ratelimit-* headers before the blocked request.

If there's no penalty on passing the rate limit too often (which I will research about), I'm opting for the second option, as it will be a cleaner and simpler solution imo. What do you think?

Either way, please share your upload speed so we can get a general sense of the rate limit

Thanks!

from web.

billyboybob avatar billyboybob commented on August 17, 2024

Upload speed should be around 125mbps to 150mbps max, but is usually a bit lower than that. Speed test link: https://www.speedtest.net/result/13941504387
After looking those two things up, it does seem like retry_after is a good option. Not really sure though.

from web.

DisboxApp avatar DisboxApp commented on August 17, 2024

Hi again!
I ended up fixing the issue using the third option (x-ratelimit-* headers) over at #16

However, my upload speed isn't high enough to properly test this.
Could you clone the branch and test it locally (As explained in #10) and comment there if it fixed your issue?
You can also review the changes if you want toπŸ˜„

from web.

billyboybob avatar billyboybob commented on August 17, 2024

Screenshot_5087
Oddly, it was working quite well, but then at around 50% of the file (it's about 11.4 GB) it started doing this again.
Checking the discord channel also shows that chunks are being skipped
(Also, I would review them but I know next to nothing about coding lol)

Link to the file I used is here: https://placedata.reddit.com/data/canvas-history/2022_place_canvas_history.csv.gzip (it's just the 2022 history for the Reddit Place thing)

from web.

DisboxApp avatar DisboxApp commented on August 17, 2024

Thank you! I really appreciate your help with this.
I'll invesitgate this and will probably ask you to test a new version.

I suspect the fix might not be perfect because they x-ratelimit-retry-after only displays seconds and not milliseconds.

It is weird though, because I would expect it to round up. Just to make sure, you cloned the bugfix/upload-ratelimit branch, right?

from web.

billyboybob avatar billyboybob commented on August 17, 2024

i downloaded the zip from github, but i tried cloning it just now using git (i made sure it was the right branch) and its doing the same thing

from web.

DisboxApp avatar DisboxApp commented on August 17, 2024

Thanks again, I'll look into it and let you know!

from web.

delibrete avatar delibrete commented on August 17, 2024

Just wanted to add, I'm also getting this from trying to download a file.

image

from web.

delibrete avatar delibrete commented on August 17, 2024

The PR #16 for this seems to fix this issue for me.

from web.

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.