Error with uWs.HttpResponse #92
-
I have written scripts in place to handle user sending wrong field name and mimetype but if a user sends a wrong field name or mimetype i get the error below. Code below:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
The the invalid discarded access error bug should be fixed in the recently released v6.2.6 of HyperExpress. See if that resolves your issue. |
Beta Was this translation helpful? Give feedback.
-
I also got the error in 6.2.6
Here's a simplification of my actual backend: await req.multipart(async field => {
if (!field.file) return
const readStream = field.file.stream
const writeStream = fs.createWriteStream('/path/to/tmp')
readStream.pipe(writeStream)
}) The error throws when the request is still open, because the client is still uploading their multiform POST, but then said client refreshes the browser tab in which they were still uploading (i.e. they just force close the connection) I can replicate it every time |
Beta Was this translation helpful? Give feedback.
I also got the error in 6.2.6
Here's a simpli…