You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating to v.6.4.10, I noticed the addition of stream responses #326 and decided to implement it on a project.
Current behavior
The Stream object is sent in the response and we receive it as follows : {"fd":null,"path":"/workspaces/lib-nodejs/packages/base-inversify-server/test/mock/files/openapi.yaml","flags":"r","mode":438,"end":null,"bytesRead":0,"_events":{},"_readableState":{"highWaterMark":65536,"buffer":[],"bufferIndex":0,"length":0,"pipes":[],"awaitDrainWriters":null},"_eventsCount":1}
I expect to receive the file's content on GET /openapi without additional code.
To do so, the handlerFactory has to pipe stream typed content inside the library.
Workaround
I added the following middleware in inversifyServer.setConfig to make it work the intended way :
Uh oh!
There was an error while loading. Please reload this page.
Context
After updating to v.6.4.10, I noticed the addition of stream responses #326 and decided to implement it on a project.
Current behavior
The Stream object is sent in the response and we receive it as follows :
{"fd":null,"path":"/workspaces/lib-nodejs/packages/base-inversify-server/test/mock/files/openapi.yaml","flags":"r","mode":438,"end":null,"bytesRead":0,"_events":{},"_readableState":{"highWaterMark":65536,"buffer":[],"bufferIndex":0,"length":0,"pipes":[],"awaitDrainWriters":null},"_eventsCount":1}
Current Code :
with the following call to the controller stream function :
Expected
I expect to receive the file's content on
GET /openapi
without additional code.To do so, the handlerFactory has to pipe stream typed content inside the library.
Workaround
I added the following middleware in
inversifyServer.setConfig
to make it work the intended way :Related
I saw the issue #456 that is somewhat related
The text was updated successfully, but these errors were encountered: