mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
@uppy/companion: fix 429 not returning JSON response with message (#6177)
discovered by llm
This commit is contained in:
parent
cb6d42a42f
commit
49db42d72a
2 changed files with 6 additions and 1 deletions
5
.changeset/good-chicken-brake.md
Normal file
5
.changeset/good-chicken-brake.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@uppy/companion": patch
|
||||
---
|
||||
|
||||
Fix bug with 429 not returning JSON response with message
|
||||
|
|
@ -86,7 +86,7 @@ function errorToResponse(err) {
|
|||
|
||||
// @ts-ignore
|
||||
if (err.statusCode === 429) {
|
||||
return { code: 429, message: err.message }
|
||||
return { code: 429, json: { message: err.message } }
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue