Open lekhacman opened 7 years ago
Can we merge this PR?
Fatal error: Second argument needs to be a buffer
The same problem.
binding.read(fd, buffer, offset, length, position, req); TypeError: Second argument needs to be a buffer
How to fix it?
@fpavlik I have fixed the issue in the pull request but looks like this repository has no maintainer. So, you can go ahead with 2 options:
Use a different, well-maintained library (such as "request"...) (personally recommend this option)
If you want to stick with restler, then use rest.data() instead of rest.file()
thanks, men!) Good luck
fs.read() expects <Buffer | Uint8Array> at the second arguments (Node 8.x) but received a number.