triggerUncaughtException is thrown because errors occur in both streams after responseStream.tee()
in processStream
#373
Labels
api: aiplatform
Issues related to the googleapis/nodejs-vertexai API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
https://github.com/googleapis/nodejs-vertexai/blob/main/src/functions/post_fetch_processing.ts#L92-L96
In the
processStream
function, the use ofresponseStream.tee()
at the end creates a situation where if errors occur in both the originalresponseStream
and the teed stream, the caller needs to handle thecatch
for both streams to avoid triggerUncaughtException.The text was updated successfully, but these errors were encountered: