Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Its not working Any more ? #44

Open
abdolrhman opened this issue Aug 1, 2019 · 1 comment
Open

Its not working Any more ? #44

abdolrhman opened this issue Aug 1, 2019 · 1 comment

Comments

@abdolrhman
Copy link

.on method is not working in the request :( !!!!!!!!!!

const _progress = progress(_request) .on('progress', (stats) => {}) .on('error', (err) => {}) .on('end', () => {}) .pipe(fs.createWriteStream(filePath));

@abdolrhman abdolrhman changed the title Its not working Any more :(((( ??? Its not working Any more ? Aug 8, 2019
@KerimG
Copy link

KerimG commented Jan 13, 2020

I don't thinks that's the correct syntax. You're not supposed to pass your request as a variable but actually call it in progress' parameter list, like so:

const _progress = progress(_request(url)).on('progress', ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants