Coder Social home page Coder Social logo

upstream's People

Contributors

zacksiri avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ruby2elixir

upstream's Issues

Handle Authorization Key Expiration

When upstream process is long running the authorization key can expire returning a

HTTP request error: {{{:badmatch, {:error, %Upstream.Error{code: "expired_auth_token", message: "Authorization token has expired", status: 401}}}, [{Studio.Content.Imaging, :"-url_template/2-fun-0-", 1, [file: 'lib/studio/content/imaging.ex', line: 19]}, {Studio.Cache, :handle_call, 3, [file: 'lib/studio/cache/cache.ex', line: 42]}, {:gen_server, :try_handle_call, 4, [file: 'gen_server.erl', line: 636]}, {:gen_server, :handle_msg, 6, [file: 'gen_server.erl', line: 665]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 247]}]}, {GenServer, :call, [Studio.Cache, {:cache_with_ttl, "posts", [ttl: 86400], #Function<0.131674544/0 in Studio.Content.Imaging.url_template/2>}, 5000]}}

We need to handle this error and restart upstream in the elixir app, so it can re authorize.

Upload from existing chunks

Since we might be able to leverage resumable js, see if its possible to take the chunks from resumable js and upload straight to b2

Figure out a way to use less memory for threaded uploading

Right now we are streaming once for calculating sha1 and chunk size, we should write the stream to a file while doing the first pass so it doesn't eat up memory, opening up possibility to multiple large file uploading concurrently.

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.