Questions tagged as 'nodejs'

0
answers

Error in NodeJS when printing on Windows?

Hi, I have a problem and I can not formulate it here or I am doing it in the right way. It turns out that I'm trying to print some files through Node.js in Windows, I've tried with the libraries: node-printer, escpos and node-thermal-printer. Al...
asked by 09.10.2018 / 07:49
0
answers

Parameterize everything by AJAX JQUERY JSON

If there are several simple forms with 2 or 3 similar fields, such as form1: id_input_form1, descrip_input_form1; form2: id_input_form2, descrip_input_form2; form3: id_input_form3, descrip_input_form3 ..... and so on. with the MVC method,...
asked by 03.11.2018 / 05:20
0
answers

Error in reaction ecommerce

I'm trying to start a reaction and it gives me the following error FATAL ERROR: CALL_AND_RETRY_LAST allocation failed - Javascript heap out of memory. For the installation I am strictly following this guide link but when I give it to...
asked by 13.10.2018 / 10:26
1
answer

Method $ push does not work (MongoDB, Mongoose)

How about. I'm having a problem I have an array in mongodb, which is supposed to store objects, but I can not add them. Student.update(mongoose.Types.ObjectId("5bc25777d9dded06a4635430"),{$push:{sanctions:{reason:'test'}}}); It is assumed t...
asked by 15.10.2018 / 17:35
0
answers

Know tracking requests

I wanted to know if there is any way to know where a request comes from on my web site? Let me explain: If I am in a marketing process, without using Google Analytics, and I place a link to my site on another website and a person clicks on...
asked by 04.10.2018 / 18:02
0
answers

How to use a model in another model in mongoose | Node.js with Mongoose

I'm doing a task application with node.js, express and mongoDB, the fact is that I'm trying to use my data from my model called User in my model called Task, my schema User has a field called tasks which is an array where all the tasks go, then...
asked by 08.10.2018 / 17:52
0
answers

update with mongoose when saving with save () does not trigger the process

I try it in all possible ways: Modelo.findById(req.params.id).then(datos =>{ datos.name="value" datos.save(); }).catch(err=>{ res.json(err); }) Here I do it with a return :...
asked by 28.09.2018 / 09:51
1
answer

Does not show the Throw New Error in Node.js

I'm working with this function: function Validate_Number(jsonFile){ jsonFile.forEach(f =>{ f.Notification.forEach(e =>{ e.Means.forEach(function(v){ let data = Object.keys(v); data.forEach(function( x ){...
asked by 27.09.2018 / 21:08
0
answers

NODE JS Express Session lost redirect Payment Gateway

I have an express session, but when I redirect to payment gateway, the gateway return to my page but the session is lost var session = require('express-session'); app.use(session( { name: "sessionData", secret: "mysecret"...
asked by 25.09.2018 / 18:19
0
answers

You do not send data to the node / express API from Angular

Hi, I want to send an object to the database from an Angular 6 service. but my code sends me an empty object to the database, HELP: import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; imp...
asked by 26.09.2018 / 02:05