Streamablefile throws error for range requests on iOS when playing audio file #14873
Open
3 of 15 tasks
Labels
needs triage
This issue has not been looked into
Is there an existing issue for this?
Current behavior
When a range request is made from iOS device I get this error:
When trying to debug the code using debugger, found this thrown from
express-adapter.js
file, theerr
object is shown here:There were cases when the err object was empty and it didn't thrown an error due to this code:
I am not able to catch this error using catch everything exception filter
The code which throws the error is here:
Any suggestions on how to resolve this error?
Is there any workaround at-least to catch the error?
Minimum reproduction code
https://stackblitz.com/edit/nestjs-typescript-starter-adjltria?file=test%2Fapp.e2e-spec.ts
Steps to reproduce
I am not sure if this is the correct way to reproduce though:
npm run test:e2e
Expected behavior
A way for error to be caught and not kill the entire backend server.
The reason being we cannot control how client makes a request.
Package
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other package
No response
NestJS version
^10.0.0
Packages versions
Node.js version
v18.17.0
In which operating systems have you tested?
Other
The issue happens when trying to play the audio on iOS.
Additional context here - https://discord.com/channels/695411232856997968/1354845020548763819/1354845020548763819
The text was updated successfully, but these errors were encountered: