nodeshot icon indicating copy to clipboard operation
nodeshot copied to clipboard

RangeError: "port" argument must be >= 0 and < 65536

Open craigsketchley opened this issue 9 years ago • 2 comments

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?

craigsketchley avatar May 24 '16 03:05 craigsketchley

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.

jon-cole avatar Jun 25 '16 10:06 jon-cole

I don't have much time to maintain this tools. Will add a warning to the readme.

FWeinb avatar Jun 25 '16 10:06 FWeinb