Tagged Questions
Node.js is an event-based, non-blocking, asynchronous I/O framework that uses Google's V8 JavaScript engine and libuv library. It is used for developing applications that make heavy use of the ability to run JavaScript both on the client, as well as on server side and therefore benefit from the re-...
0
votes
0answers
4 views
Document not saving after finding and modifying in Mongoose
I have a route to remove a team and all requests to join that specific team, which is nested in a JoinTeamRequests array in the UserProfiles. The idea is to remove all traces of invites to that team ...
0
votes
0answers
4 views
Acces app.settings Node.JS in a file without req object
I am using node.js/express.js for my app.
In my app.js, I define several configuration variable, such as my database object:
app.set('db', mysql.createConnection({
host: config.host,
...
0
votes
1answer
6 views
Unable to enter Unicode data, MySql, Express, M*EAN
I can insert english data no problem, but when I inserted Khmer Language, this error logs appears:
info: Session: { id: 1, username: john }
verbose: Executing (default): INSERT INTO `Articles` (`id`,`...
-1
votes
0answers
2 views
Unable to get telegram inline buttons to work
I was working with MS Bot framework and wanted to display some inline buttons on telegram after going through the documentation and some related questions i wrote the following but it doesn't seem to ...
0
votes
0answers
2 views
Node.js Skipper Check if file already exists before upload
My question is: Does skipper check if the file exists before uploading it?
I know there is almost no chance to generate a uid that already exists, but I want to make sure that this probability is 0.
...
0
votes
0answers
6 views
how to make inbound call from customer to twilio?
I am trying to figure out a way to make a inbound call from a number to twilio customer care ( from my trial account ) . I knew the way of making call from twilio to customer care which is kind of ...
1
vote
2answers
29 views
issue:comparing and object with array of objects
I have a scenario where i need to compare object property called 'name' with array of strings with same name and get the length of the compared value based on name
i don't understand what i need to ...
0
votes
0answers
6 views
how to extract the JSON schema (sub schema) of a property from complete object json schema
I need a help regarding schema extraction by property.
For example i have a JSON schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "A simple address format",
...
0
votes
0answers
7 views
node.js c++ native addon - how to return Array
I'm using NAN for my node.js native addon project.
node 4.4.x, nan 2.2.x
I know how to write simple c++ functions, passing parameters from javascript to c++, and return simple type value back to ...
1
vote
0answers
14 views
Passing the glob result into another script
Is there a way to combine glob-style query and pipe its results into another library, like FOR loop-style, and everything being done in npm script?
I'm not interested in Gulp/Grunt solutions because ...
1
vote
0answers
24 views
INSERT throw errors
I'm developing an API with Nodejs and I have a create project endpoint and a create patient endpoint. Both of them work if I create the database tables with mySql.
But I need to run first create ...
0
votes
1answer
17 views
node js can array be modified during for loop, by external function?
Lets say that my program is currently in a for loop, but for some reason its taking too long. Lets say that somehow the algorithm is so slow that it takes about 500ms to loop through maybe 100 ...
0
votes
0answers
9 views
NodeJS Request throw [Error: read ECONNRESET] when make http call
when use Request TCP always REST, but use node native http module is fine.
var request = require('request');
var http = require('http');
request.get('http://www.drcnet.com.cn/www/integrated/login....
1
vote
1answer
8 views
Strongloop: filter data with [and] and [or] conditions together
I'm trying to filter data using "and" and "or" conditions.
I would like to get this mySql query:
SELECT * FROM `data` WHERE ((`property1`=11) OR (`property1`=13)) AND (`property2`=6)
The rest api ...
0
votes
0answers
16 views
Meteor: How to deal with async code
I am trying to store references for discovered BLE-Devices inside a Meteor Mongo Collection.
So far the code works fine, but at Devices.insert({....}) an error happens:
Meteor code must always ...
0
votes
1answer
10 views
webpack-dev-server command not found
I'm currently trying to run webpack-dev-server from the cmd by it gives me
command not found
I did a lot of reading about this current issue but I couldn't find any working solution. I've tried ...
0
votes
1answer
14 views
router_1.provideRouter is not a function when trying to run Angular2/NodeJS app
I have created a simple NodeJS/Angular2 application which is encountering the following error when I try and access the entry point page for the application:
router_1.provideRouter is not a function
...
0
votes
0answers
7 views
Nodejs package failed on Heroku
I was trying to deploy my node application in heroku and i am getting this error
2016-07-08T07:00:50.959084+00:00 app[web.1]: module.js:328
2016-07-08T07:00:50.959099+00:00 app[web.1]: at Module....
2
votes
0answers
25 views
Session cookies not working in Electron
I'm looking at implementing a login system in an Electron[0] application which I'm building but getting stuck on the part of handling the session. Basically I want to store the users session so it is ...
-2
votes
0answers
6 views
Debugging Node.js Tools project in visual studio 2015: error
I have a problem: when I debugging Node.js project in MSVS2015 very often occured fatal error after which visual studio reboots. I use Node.js Tools, version 1.1.
How can I fix it?
0
votes
1answer
8 views
supertest-as-promised and chai
I try to use supertest-as-promised with chai's expect. The test should go like this: post some JSON the foos endpoint, then call bars endpoint, where the response's body has a length of 2.
it('...
3
votes
2answers
23 views
AngularJS + ServiceStack + Node.js as a proxxy?
I have created an application in angularjs. The server side is covered by servicestack, I'd like to process a json file that is provided by the servicestack application. To do it I use following code ...
0
votes
0answers
6 views
NodeJS Xray can't crawl to multiple sites to scrape data
So, I need to scrape real estate ads into a nidax.json file. I go to the all ads page, and use the link to the individual ads to take the data I need. I am using NodeJS Xray scraper, but for some ...
0
votes
1answer
8 views
started learning node cluster getting error
I tried this as my first code and i am getting error
const cluster = require('cluster');
const http = require('http');
const numCPUs = 4;
if (cluster.isMaster) {
// Fork ...
0
votes
0answers
13 views
How to securly store tokens in a Node CLI application?
I am writing a Node.js CLI application, and at some point I need to store the user's Twitter API tokens.
What is the best way to do this so this?
(Besides creating a file and putting them there)
The ...
0
votes
1answer
17 views
Cannot find module while adding cloud code to parse server example project
I have created a project from here https://github.com/ParsePlatform/parse-server-example
I have followed instruction here http://blog.parse.com/learn/parse-server-video-series-april-2016/
And ...
1
vote
2answers
28 views
How to add millions of numbers in nodejs without blocking the further execution?
I am trying to implement the solution of a problem in node js that is:
For example:
Ur is: http://localhost/sum/5
Should return
"The sum of numbers from 1 to 5 is: 15"
If
URL: http://localhost/...
0
votes
1answer
16 views
executing diiferent code for different clients in node js
I am trying to connect multiple client to server and incrementing value for each connected client but if one client connected number is increment sequentially like 1,2,3 but when 2 nd client connects ...
0
votes
1answer
12 views
node.js app server needs a companion file server
I'm running node.js as my app server and it has been working great for most of my needs. I big part of my application is uploading and downloading media files to the Server.
The functionality I need ...
1
vote
1answer
11 views
nodejs update dependencies in package.json from latest to used version
I created an app using MEAN stack.
It has a lot of dependencies in package.json app.
Here is an Eg of My package.json file :
{
"name": "myapp",
"version": "1.0.0",
"description": "myapp",
"...
0
votes
0answers
5 views
how works sequelize.js associatios?
Please, maybe someone can explain me this on example.
I am reading the official docs but its not understandable for me...
How does it works: hasOne, hasMany, belongsTo, belongsToMany?
0
votes
0answers
9 views
Node.js googlemaps cluster execute error
I'm now use the node.js platform. And I want to use googlemap cluster library. However I can't execute the source code.
googlemaps cluster api url : https://github.com/googlemaps/js-marker-clusterer
...
0
votes
0answers
14 views
Node js sending array using async.each
I'm very new to node js. I have collections "merchant, checkins, orders, users, tab items". I will pass merchant id so that i need to get all checkins for the merchant and each checkin has one order ...
1
vote
0answers
12 views
Google oauth not returning email passport authentication
I am trying to make a sign in with google button using passport module of node js. i am trying to get persons email id, name , profile pic. I am trying to download pic to local server. Google is not ...
3
votes
3answers
24 views
how to push a message from web server to browser using node js
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" href="css/animate....
0
votes
1answer
13 views
in node.js with express req.session is undefined inside my require() module
I'm wondering why req.session.username is undefined in the tag >>>DOESNT WORK<<< while it does work in the tag >>>THIS DOES WORK<<< . I brought in req as an argument to my module ...
0
votes
0answers
6 views
Using PostgreSQL and Node for Android app
I'm sorry for the beginner question. I made an app a while back that used SQLite as the database, I ended up doing a lot of work to secure the data and back things up in Google Drive and the SD.
Now ...
0
votes
0answers
6 views
ActionHero.js Framework with Oracle database persistence
I am quite new working with nodejs, I need to make a REST API that can work with websocket. I was searching for a framework that I could work with, I found actionhero.js, I think that can fit my needs....
0
votes
0answers
5 views
Firebase/nodejs auto synchronisatoin
I would like use nodeJS to refresh my view, every time a function has made changes to the firebase database. This is how i am fetching data and sending it to EJS view where i render it
ref="reference ...
0
votes
0answers
8 views
Easyimage convert large portrait PNG to multiple page PDF
I have a document that is a PNG image (very tall) ~10 pages equivalent.
When I use Easyimage (npm easyimg) to convert the PNG to a PDF, it converts it as a single page PDF. This means I need to zoom ...
0
votes
0answers
6 views
Issue with MIME type for PDF download
I'm trying download a pdf file from a server using node.js and express. I originally make an AJAX POST to upload a document. After the document has been uploaded, I want to download a pdf. I couldn't ...
2
votes
1answer
27 views
Node.js: breakpoints in setInterval
I am debugging a node.js (Node version 6.2.1) program with setInterval() in it. The code is very simple:
const log = console.log;
let cnt = 0;
const inc = () => {
const beforeDebug = Date.now(...
0
votes
0answers
15 views
Callback url in express(node.js)
I want some help to build a structure for my node.js application.
My requirement is:
Req R1 will come to say endpoint E1, with a payload P1 (having
callback url (say U1) as well), I will ...
0
votes
2answers
25 views
Element is not clickable at point Selenium webdriver
I have the following code and I cannot figure out how to click on an element without getting "Element is not clickable at point" error message.
You can also see that I am moving to the element ...
2
votes
0answers
21 views
Is node.js with reactjs as php template rendering service a good idea?
My website is written in PHP. Node.js is also set up for socket.io. I have been thinking about server-side rendering with Reactjs so I can reuse the views on both client and server sides. Planning to ...
0
votes
1answer
14 views
Socket Connection between JAVA Client and Node Server
I'm trying do a connection between java client and node server but my client wait a message with readUTF() (JAVA) and trying send a message with socket.write (Node) how to convert my message to UTF? ...
0
votes
1answer
26 views
How do I wait for a pull?
I need to run a container from node so I'm using the dockerode module, which uses the Docker API. To run a container I first need to pull the image (if it doesn't exist locally). I've promisified ...
0
votes
1answer
8 views
Facebook login for mobile clients with Node express backend
I'm using parse-server (on heroku) as the backend for a mobile app.
Facebook login/signup will be an option for users.
What's the best workflow?
I was thinking the mobile client could login to FB ...
0
votes
0answers
3 views
Attempt to install `sqlite3` for Electron app resulting in incorrect path
I'm new to Electron and Node. I'm trying to build an app that will include a sqlite3 database, just for the experience of doing it (this will not be my last stackoverflow post on this project).
...
0
votes
0answers
11 views
iOS: Firebase Custom Authentication Setup (Node.js)
I've followed the links on the Firebase Website and have ended up with multiple different links open. (Links below)
I am trying to implement Firebase's Custom Authentication Feature for my iOS ...