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
Simple enough. And it absolutely completely works. But, occasionally I get a warning:
DeprecationWarning: Calling an asynchronous function without callback is deprecated
Does it need a callback then? And where, what should I put into it?
Also, I'm a noob on node (expert on general javascript though) so I might not be doing it correctly. If that's the case, please do show me a correct(er) way to "just" download a binary file and wait for it.
I'm on NodeJS 7.10 and Windows 10, if that helps.
The text was updated successfully, but these errors were encountered:
Btw while you wait: Technically you are already installing request. request-promise-native is just an extension that adds promise capabilities to request. request is always the library that does the actual heavy lifting.
I'm using the recommended? way to stream a request to a file, and use
await
to wait until I can move to downloading the next file in my queue.Simple enough. And it absolutely completely works. But, occasionally I get a warning:
Does it need a callback then? And where, what should I put into it?
Also, I'm a noob on node (expert on general javascript though) so I might not be doing it correctly. If that's the case, please do show me a correct(er) way to "just" download a binary file and wait for it.
I'm on NodeJS 7.10 and Windows 10, if that helps.
The text was updated successfully, but these errors were encountered: