FWeinb / nodeshot

A simple screenshot web service powered by Express and node-webkit.
134 stars 9 forks source link

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

Open craigsketchley opened 8 years ago

craigsketchley commented 8 years ago

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?

jon-cole commented 8 years ago

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.

FWeinb commented 8 years ago

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