Skip to content Skip to sidebar Skip to footer

Koa.js Request With Promises Is Hanging

So I'm messing around with Koa.js and generators, just threw together a simple site for demo purposes. I'm using sqlite with node-sqlite3 and Q for promises. Here's my db code: mod

Solution 1:

OK, after much frustration, it turns out that when I tried either Q or bluebird, I was having this issue. As soon as I switched to native Promises, it worked swimmingly. I'll have to dig in some more to figure out what the heck is going on, but I'll leave this here in case anyone runs into this in the future. Also, if anyone is curious, I was running with node 0.11.13 and q version: 1.1.2


Post a Comment for "Koa.js Request With Promises Is Hanging"