restify Questions

4

Solved

I have written a small API which uses the Node js "restify" framework. This API receives a request (actually anything after "/") and then send that request to another server. Get the response back ...
Response asked 13/2, 2014 at 9:11

1

Solved

I'm passing from express to restify and I wrote a module to check my authorization that used express-session and before it worked well. Now, on restify, the request.headers.authorization return un...
Ceiling asked 27/10, 2016 at 14:56

2

Solved

I am using node.js restify module. I have a REST API which outputs the result of a single MySQL query in json. Here is the code of the API; var rest_api_get_list = function (app, url_name) { func...
Fivefinger asked 8/8, 2016 at 16:21

9

I have written a node restify server in coffee and I can't seem to get it running. While deploying I get the following error: Waiting for application port (8080) become available ... after wh...
Moisten asked 11/7, 2015 at 15:57

2

Solved

I've been using Restify for some time now. I ran across some code that lacks next() and it occurred to me that I'm not sure if I fully understand the reason why next() should be called after res.se...
Lampoon asked 12/3, 2014 at 14:37

2

Solved

I'm having a difficult time finding how to access the IP address of the REST client from a route. server.get('api/foo', function(req, res, next) { // How can I access the IP address of the reques...
Toxoplasmosis asked 26/1, 2015 at 20:38

1

Solved

I am using node.js restify as backend to run a REST API server and angularjs as front-end to call the HTTP GET. The REST server uses HTTP Basic Authentication. The username is foo and password is b...

2

Solved

I have an application built on restify. I have no memory leaks, however I have big memory growth during scavenge gc, then comes heavy weight mark-sweep gc and cleans the memory. It affects perfor...
Frosting asked 28/8, 2015 at 12:47

2

Solved

I am using node.js restify ver4.0.3 The simple following code works as a simple REST API server that supports HTTP. An example API call is http://127.0.0.1:9898/echo/message var restify = require...
Rascal asked 12/11, 2015 at 7:26

3

Solved

I have the following code: app.js [...] server.get(/\/docs\/public\/?.*/, restify.serveStatic({ directory: './public' })); server.listen(1337, function() { console.log('%s listening at %s', s...
Spiro asked 17/3, 2013 at 17:29

2

Solved

I'm building a REST backend for an SPA with NodeJS, Restify and PassportJS for authentication. Everything's working except the last step, which is redirecting the client from the backends /login/fa...
Strapped asked 4/9, 2013 at 12:34

1

Context I am trying to build a dynamic server with restify (2.6.2) where services are to be installed and uninstalled once the server is started. I realized this can be seen as something odd but i...
Variate asked 15/6, 2015 at 3:12

2

Solved

Currently under development of API with restify and still cannot get used to specifying the API version in headers. It just doesn't seem very user friendly. Is there any way for version to be part...
Egad asked 26/1, 2014 at 15:59

2

I just start to try Restify (and NodeJS in general) and I have some trouble to get the users POST data. I have a basic Node app. On the documentation and some blog posts I read it's as simple as u...
Nylanylghau asked 1/11, 2013 at 9:46

5

I am using restify building apis, it works great. But I need to render some web pages as well in the same application. Is it possible I can use express and restify together in one application? th...
Halberd asked 2/12, 2013 at 5:31

1

I'm trying to build a RESTful api with restify.js, but I don't want to expose the api to everyone. And I'm going to use token-based authentication. The process in my mind is like this, I'm not sure...
Thorsten asked 23/8, 2013 at 21:13

1

Solved

RequestLogger Sets up a child bunyan logger with the current request id filled in, along with any other parameters you define. server.use(restify.requestLogger()); Registering the plugin doe...
Yellowgreen asked 12/12, 2014 at 9:19

1

Solved

The documentation states: Note that you can always place this on per-URL routes to enable different request rates to different resources (if for example, one route, like /my/slow/database is m...
Narcoanalysis asked 16/8, 2013 at 22:17

3

Is it possible to run socket.io & restify on the same port like express & socket.io? I did just like this but it didn't work # server.coffee restify = require 'restify' socket = require '...
Myrlemyrlene asked 27/10, 2012 at 15:23

3

How does one handle authentication (local and Facebook, for example) using passport.js, through a RESTful API instead of through a web interface? Specific concerns are handling the passing of data...
Flavour asked 28/1, 2013 at 22:41

4

I'm currently developing a RESTful web service with NodeJS and restify. I have everything up and running with node-mysql for the database, but I also would like to implement HTTP Basic authenticat...
Spathose asked 10/4, 2014 at 15:14

4

Update 4: By instantiating the restify client (see controllers/messages.js) outside of the function and calling global.gc() after every request it seems the memory growth rate has been reduced a lo...
Dissatisfy asked 22/3, 2014 at 10:29

1

I am pretty new to node.js services and I am facing a problem with multipart/form-data content type. I need a way to disable body parser functionality for specific request. I am using restify 2.6....
Starveling asked 1/2, 2014 at 13:51

3

Solved

I'm still wrapping my head around Node, but I have a very simple question. I see a lot of node examples where people are declaring their routes and all their logic in a single app.js file (or somet...
Lexicographer asked 20/5, 2012 at 2:22

2

I have server runing on heroku with heroku SSL addon. Server is created with this options: name: 'ServerName', version: '1.0.0', And the I run server like this: server.listen(process.env.PORT...
Bakelite asked 8/9, 2013 at 14:47

© 2022 - 2024 — McMap. All rights reserved.