So, I've run into a problem with my Node.js app, using Restify and Passportjs (Google OAuth2 strategy). When I use passport.authenticate(), it gives me the following error:     400. That’s an error.   Error: invalid_request   Missing required p...
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 lot (~500KB per 10secs). Yet, the memory usage is still...
I'm curious if anyone could provide some insight on the best way to abstract an API built with Node.js + Restify + Mongoose. After coming from an MVC / PHP background, it's interesting to find that there's not string/defined structure for...
I have a below Restify custom error that is being thrown to my catch block of BlueBird Promise.  var test = function() {   respObject = { hello: { world: 'aasas' } };    throw new restify.errors.ServiceError(respObject, 422); }   Then in Serv...
Coming from python world, we heavily used tastypie or Django-Rest-framework to create Rest API.  Reading through Convincing the boss from Felix Geisendörfer, i noted the following statement:     Building light-weight REST / JSON api's is someth...
Array and loops through but I want to be able to run all of them in parallel instead as I don't want to run one after another.  I basically want to store all endpoint calls status codes, body and time as array and return them as results regardles...
I am trying use restify to serve all paths that don't begin with /api from a directory containing static files.  var restify = require('restify');  var server = restify.createServer();...
So, i'm doing sort with priority that already solved on my previous post: Elastic - Sorting value with priority  But i found the new problem, when i want to filter data with specified field, the query sort of timeInt doesn't work anymore  I&#...
Okay, here it goes, am using node.js with sequalize.js as ORM for my application. there is an api endpoint called maxEntry which returns the latest entry sorted by "pubDate". However, the entry being returned from my app is not the latest one...
I am using node.js restify.  I have a HTTP GET request that looks like this;  http://127.0.0.1//read_val?XXX=123&YYY=456&ZZZ=789  In my handling function, to retrieve the URL parameters, the relevant code will be like this;  var api_get_func...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.