M
M
minority2019-11-07 09:14:43
JavaScript
minority, 2019-11-07 09:14:43

Stream does not reach the end and completes without errors, who met with this?

Hello everyone, I'm facing the same problem

result = await axios.get('....', {
        responseType: 'stream'
      });

The address gives the flow, further
result.data.pipe(StreamWritable);
          result.data.on('end', resolve);
          result.data.on('error', reject);
          });

The stream somehow randomly sometimes ends on the last buffer, the stream simply does not reach the end without errors.
Has anyone encountered this or in which direction to dig?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question