nodeshot
nodeshot copied to clipboard
RangeError: "port" argument must be >= 0 and < 65536
Hi,
When running the example setup, I'm getting the following error when I GET http://localhost:8080/?url=[any-url]:
{"request":"failed","reason":"RangeError: \"port\" argument must be >= 0 and < 65536"}
Any ideas what I've missed?
Hi Craig,
It's an issue with newer versions of node. If you change
sock.bind(undefined, 'localhost', function () {
in nodeshot-renderer/node_modules/electron-screenshot-service/src/browser.js to
sock.bind(0, 'localhost', function () {
it works.
It was raised as an issue over on the electron project this project is based on.
I don't have much time to maintain this tools. Will add a warning to the readme.