@mcavage – regarding the restify clients: can a single instance efficiently deal with multiple requests simultaneously? Or should they be used more as one off instances within a single request?
we load the url /_book, works... then refresh the page and it doesnt load the css. It loads the html though.
Racciatti Luciano
@luchanz
hi everybody! somebody is using that?
I am building an application with restify Json client and when I run the program, the function that use the client finalize but the client is running... so is like the client is asynchronous javascript
Racciatti Luciano
@luchanz
is it right? how can I resolve it?
Baris Balic
@barisbalic
I started using restify last night to flesh out a replacement for something I've been doing, within minutes I was really pleased with the results. Feels like this will make my life a tad easier, so thanks very much!
Nelson
@nelsonic
@barisbalic what were you using before?
Baris Balic
@barisbalic
@nelsonic you're everywhere!
Grape.
Was tempted to throw express at the problem, but was expecting some impedance when it came to auth, access control, rate limiting, etc. But handlers and the call chaining will make it all trivial
Does anyone know if you can easily set a base url for all routes with restify? We have the version of our api in the url and I want to avoid typing "/v1/resource" for every route.
Austin Riendeau
@apriendeau
There use to be a project called restify-namespace. Don’t know if its still being developed or not.
Rachael
@rkstedman
thanks @apriendeau I'll check it out
Mario Pareja
@mpareja
We're using it, but it is limited to simple routes.
(Disclaimer, I wrote the thing.... lol)
It's got solid test coverage, we just haven't had the need for regex-based routes. /cc @rkstedman
dewaldg
@dewaldg
Building dtrace-provider failed with exit code 1 and signal 0 <-- anyone knows what is up with this?
Salvador López Mendoza
@sallomendo
Hi
Nick Parsons
@nparsons08
Anyone available to point me in the right direction for debugging? A route is working perfectly okay on localhost; however, when deployed on Heroku, I receive a 405 Method Not Allowed.
tombradev
@tombradev
Hii, is anyone having an issue installing with npm install restify??
Alexander Alimovs
@aalimovs
@nparsons08, sorted?
Moszeed
@moszeed
@rkstedman could you find a solution for the base url problem ? the restify-namespace solution does not work with our restify server ...
hellboy81
@hellboy81
Hi, Is there good practices to prevent DDOS attacks on services that uses node-restify?
Quick question: is it possible create a separate route object and then add it to a server object via use(), similar to Express? It would be nice to group routes and define middleware for that group in an isolated manner.
hellboy81
@hellboy81
Hi
Baris Balic
@barisbalic
@mcavage I am using restify for a couple of APIs, each of which will expose an endpoint then pipe the request through a series of middlewares, some decorate the request for later stages in the pipeline, others decorate the response. I'm not particularly happy about the way I'm arbitrarily adding to the response, but I can't think of a better way to do this. I am also using the on('after') callback to actually return the response, because I always have the ready-built response by the end of the pipeline.