I'm using isomorphic routing with Grapnel and grapnel-server which was working great. After I upgraded to Grapnel v0.6.3 (from 0.6.2) my pages stopped to respond. At first, I thought there was a bug in my code, so I started to debug and found the real cause of the problem.
I'm using isomorphic routing with Grapnel and grapnel-server which was working great. After I upgraded to Grapnel v0.6.3 (from 0.6.2) my pages stopped to respond. At first, I thought there was a bug in my code, so I started to debug and found the real cause of the problem.
In you last commit https://github.com/bytecipher/grapnel/commit/5a838d4f03c681439b970ec57589513e41a4b5e1 you changed a lot of functionality in
grapnel.js
, that eventually broke grapnel-server.The
wareShouldRun
function is now accepting wrong data https://github.com/bytecipher/grapnel/blob/server-router/index.js#L122. In previous version, thereq
attribute was holding the entireconnect
's request (a huge object), and here's how it looks now:So the page now hangs, because
req.method
is alwaysundefined
. Theres
object is now also became quite a srinked.Hope this info will be helpful to you.