How would I get information about why a streaming connection closed? #1458
Unanswered
isiah-lloyd
asked this question in
Q&A
Replies: 1 comment
-
Hmm, hard to tell... maybe this could work? audioStream.body.pipe(spliceMetadata).on('error', console.error) fyi, body is going to be a whatwg stream later in v4... just a heads up, still need node stream, then you will be able to do: another way to deal with it could be to use async await... try {
for await (const uint8 of audioStream.body) {
spliceMetadata.write(uint8)
}
} catch (err) {
console.log(err)
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am streaming live audio using
node-fetch
. I ran into an issue where my connection was getting closed after a certain amount of time on a certain VPS provider. I am thinking perhaps the IP was on a block list, but I really had no idea how to diagnose it. How would I get more information about why a connection closed?Example Code
This code pipes the body through a transformer and then transcodes the audio with FFmpeg.
Your Environment
Beta Was this translation helpful? Give feedback.
All reactions