0

I'm trying the example: https://github.com/strongloop/strong-remoting/blob/master/example/simple.js

When I invoke the curl, I get: curl: (52) Empty reply from server

and the node program exits with: sm@valley:~/Documents/Projects/test/loopback.io/remoting$ node simple.js

/home/sm/Documents/Projects/test/loopback.io/node_modules/strong-remoting/node_modules/express/lib/router/index.js:603 return fn.apply(this, arguments); ^ TypeError: Cannot call method 'apply' of undefined at Object. (/home/sm/Documents/Projects/test/loopback.io/node_modules/strong-remoting/node_modules/express/lib/router/index.js:603:15) at Object.immediate._onImmediate (timers.js:348:16) at processImmediate [as _immediateCallback] (timers.js:330:15)

Any idea what I'm missing ?

gvlasov
  • 18,638
  • 21
  • 74
  • 110
SubuKris
  • 71
  • 2
  • The examples are out of date... See https://github.com/strongloop/strong-remoting/pull/169 – Skawful Jan 30 '15 at 21:20
  • Looks like that PR was merged. @subukris Can you try the example code again and make sure it works? If so, maybe delete this question? – Jordan Kasper Feb 02 '15 at 14:04

1 Answers1

0

You may want to also look at https://github.com/strongloop/loopback-example-remote. It's an example of the LB remote connector, which uses strong-remoting. Not sure if it fits your use case, but AFAIK it works.

RandM
  • 231
  • 1
  • 3