uppy/examples
Mikael Finstad 0e2bdfdaa8
@uppy/companion: unify http error responses (#5595)
* improve comments

* unify http error responses

when proxying requests
this in order to make it easier to debug when setting up companion/transloadit integration, and lessen support burden on us.
remove outdated `err.status` checks. this was added [7+ years ago](https://github.com/transloadit/uppy/blame/cf18689c1055055fc73a33fb9fe18e1046dfc8e4/packages/%40uppy/companion/src/standalone/index.js#L143) and we now use `got` which doesn't provide err.status
Instead, for any other unhandled proxied HTTP request error responses, be nice and forward the JSON response to the client for easier debugging

* Update packages/@uppy/companion/src/server/provider/error.js
2025-01-15 22:28:08 +08:00
..
angular-example Merge stable branch 2024-06-18 17:22:02 +02:00
aws-companion build(deps): bump body-parser from 1.20.2 to 1.20.3 (#5462) 2024-09-19 10:52:26 +02:00
aws-nodejs build(deps): bump body-parser from 1.20.2 to 1.20.3 (#5462) 2024-09-19 10:52:26 +02:00
aws-php meta: update more dependencies (#5171) 2024-05-15 18:54:24 +02:00
bundled meta: run Prettier on existing files (#4713) 2023-09-29 11:11:28 +02:00
cdn-example Release: uppy@4.13.0 (#5605) 2025-01-15 09:41:29 +00:00
custom-provider @uppy/companion: unify http error responses (#5595) 2025-01-15 22:28:08 +08:00
digitalocean-spaces build(deps): bump body-parser from 1.20.2 to 1.20.3 (#5462) 2024-09-19 10:52:26 +02:00
multiple-instances build(deps-dev): bump vite from 5.3.1 to 5.3.6 (#5459) 2024-09-19 10:52:05 +02:00
node-xhr build(deps-dev): bump vite from 5.3.1 to 5.3.6 (#5459) 2024-09-19 10:52:05 +02:00
php-xhr build(deps-dev): bump vite from 5.3.1 to 5.3.6 (#5459) 2024-09-19 10:52:05 +02:00
python-xhr build(deps-dev): bump vite from 5.3.1 to 5.3.6 (#5459) 2024-09-19 10:52:05 +02:00
react-example build(deps-dev): bump vite from 5.3.1 to 5.3.6 (#5459) 2024-09-19 10:52:05 +02:00
react-native-expo examples: remove useUppy from React Native example (#5405) 2024-08-19 12:12:43 +02:00
redux build(deps-dev): bump vite from 5.3.1 to 5.3.6 (#5459) 2024-09-19 10:52:05 +02:00
svelte-example build(deps-dev): bump @sveltejs/kit from 2.5.17 to 2.8.3 (#5526) 2025-01-06 13:31:45 +01:00
transloadit build(deps-dev): bump vite from 5.3.1 to 5.3.6 (#5459) 2024-09-19 10:52:05 +02:00
transloadit-markdown-bin build(deps-dev): bump vite from 5.3.1 to 5.3.6 (#5459) 2024-09-19 10:52:05 +02:00
uppy-with-companion @uppy/companion: unify http error responses (#5595) 2025-01-15 22:28:08 +08:00
vue3 build(deps-dev): bump vite from 5.3.1 to 5.3.6 (#5459) 2024-09-19 10:52:05 +02:00
xhr-bundle build(deps-dev): bump vite from 5.3.1 to 5.3.6 (#5459) 2024-09-19 10:52:05 +02:00