simshanith / grunt-localtunnel-me

Expose local ports to a public URL with https://localtunnel.me & grunt
Other
2 stars 1 forks source link

Callback errors for v0.1.6 #1

Open pulkitsinghal opened 9 years ago

pulkitsinghal commented 9 years ago

I had the version loosely defined as: "grunt-localtunnel-me": "^0.1.1" so recently when I ran npm install I think I got upgraded to 0.1.6 and I can always downgrade but wanted to at least log this issue to figure out what the problem was.

I started seeing this error when I run grunt: Fatal error: Object #<Object> has no method 'errorCallback'

  1. I edited my Gruntfile like so:

    localtunnel: {
     dev: {
       options: {
         ...,
         handleTunnelError: function(err){
           grunt.log.error(err);
         }
  2. But I still saw the same error so I added:

    localtunnel: {
     dev: {
       options: {
         ...,
         handleTunnelError: function(err){
           grunt.log.error(err);
         },
         errorCallback: function(err){
           grunt.log.error(err);
         }
  3. And now I get an error like: Fatal error: Cannot call method 'on' of undefined

What am I doing wrong?

pulkitsinghal commented 9 years ago

Actually downgrading to 0.1.1 doesn't help me ... seems like I just never had an error so nothing that localtunnel wanted to report back to me before today ... that now that I do, apparently my config hasn't been setup for it! So any hints on fixing the config are appreciated :)

FloNeu commented 8 years ago

I experienced this issue today... also tried to downgrade... but turned out, after removing the subdomain option, it worked just fine. Lol, just realized your comment was from Jan... abandoned wiki :(