mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-28 20:40:06 +00:00
* respond with 500 if unhandled upload error 400 seems inappropriate * add todo * fix companion download error respond with correct response code when calling /get and request to the upstream server fail also add a unit test for this * forward 429 from provider allows us to retry it * rename fn * add a way to test refresh tokens * fix race condtiion with refreshing token * implement retry and fix socket - Make sure we don't instantiate a new Provider for every file uploaded (reuse the original provider instead) - this caused the refresh token synchronization not to work - Retry most errors when uploading (`/get`) using companion, but for HTTP, only retry certain HTTP status codes - Reimplement the websocket code to be more stable and retry as well * remove unused socket wrapper * remove useFastRemoteRetry because it isn't supported in Companion as far as I can tell * fix error handling * remove unneeded logic * apply review suggestion * retry awaiting for companion socket too * retry whole operation instead of individually or else we risk getting stuck retrying just half of the operation, which might never recover * improvements - rewrite so we can use p-retry for exponential backoff for socket reconnect too - improve logging - simplify/reuse code * Update packages/@uppy/utils/src/fetchWithNetworkError.js Co-authored-by: Antoine du Hamel <antoine@transloadit.com> * Explain requestClient Symbol with comment Co-authored-by: Mikael Finstad <finstaden@gmail.com> * Update packages/@uppy/provider-views/src/View.js * fixes preventing socket.send when the socket is not in the connected state catch errors in handlers * log if trying to refresh with no token * log whether we got a refresh token * dont log retrying when in reality not * always prompt: consent for google drive * add signal to post * refactor away eventmanager and event handler error catching * don't fail with upload-error if a file is canceled * fix expect * add capabilities support * make requestClient non-enumerable --------- Co-authored-by: Antoine du Hamel <antoine@transloadit.com> Co-authored-by: Merlijn Vos <merlijn@soverin.net> |
||
|---|---|---|
| .. | ||
| src | ||
| types | ||
| CHANGELOG.md | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
@uppy/utils
Shared utility functions for Uppy Core and the “official” plugins maintained by the Uppy team.
Uppy is being developed by the folks at Transloadit, a versatile file encoding service.
Installation
Unless you are creating a custom plugin, you should not need to install this manually.
$ npm install @uppy/utils