arboleya / snapshooter

Simple crawler for Single Page Applications
16 stars 2 forks source link

Using "http" before url address crashs the app #9

Closed hems closed 11 years ago

hems commented 11 years ago

So when trying to make a server to render a local theoricus app:

snapshooter -i http://hems.local:11235 -s -P 3000 -o snapshooting

i get the following error:

/usr/local/lib/node_modules/snapshooter/src/core/shoot.coffee:90 first_url = first_url.replace /\/index.\w+$/m, '' ^ TypeError: Cannot call method 'replace' of undefined at new Shoot (/usr/local/lib/node_modules/snapshooter/src/core/shoot.coffee:90:16) at Snapshooter.module.exports.Snapshooter.shoot (/usr/local/lib/node_modules/snapshooter/src/snapshooter.coffee:91:8) at module.exports.Snapshooter.init (/usr/local/lib/node_modules/snapshooter/src/snapshooter.coffee:78:15) at ReadStream.module.exports.Snapshooter.prompt (/usr/local/lib/node_modules/snapshooter/src/snapshooter.coffee:130:8) at ReadStream.g (events.js:185:14) at ReadStream.EventEmitter.emit (events.js:88:17) at TTY.onread (net.js:396:14)

hems commented 11 years ago

when removing "http" , and using hems.local:11235 the error is gone.