Questions tagged as 'node.js'

0
answers

How to use socket.io within a control that is injected by the consign?

I have my file server.js : const express = require( 'express' ); const expressValidator = require( 'express-validator' ); const expressSession = require( 'express-session' ); const consign = require( 'consign' ); const bodyParser = requi...
asked by 10.10.2018 / 14:39
0
answers

Requires client-side

Good morning. In the company where I work, there is a kind of client-side requirement to import npm without it existing on the page. It is used for inserting form scripts into the page. The code looks like this: require(['jquery'], function...
asked by 19.11.2018 / 14:00
0
answers

REST API - GeoServer (WMS)

Good, How can I integrate georeferenced data between a REST API (NodeJS) and a GeoServer server to create a WMS? Thanks for the tips     
asked by 06.12.2018 / 01:37
0
answers

req.body returning undefined when I use consign in the application

I am familiarizing with the expression, so I created a simple Form with two fields, I have a JS file where I get the data from the form and send it through xmlHttpRequest and on the server side, I'm using consign to manage my routes, prob...
asked by 24.12.2018 / 01:57
0
answers

NodeJS Error: "ERR_HTTP_HEADERS_SENT]: Can not set headers after they are sent to the client"

Well, I have a problem with my application, however I still can not understand the reason for this error, since this only happens if a user updates their password and then tries to log in. // Function validating login router.post('/processL...
asked by 21.12.2018 / 22:48
1
answer

items hidden by filters - error console

I'm creating an electron application with angular2, where I make requests to an api. When I disconnect the machine from the internet, (because I want the application to work differently without internet) on the console, it starts several errors...
asked by 03.10.2018 / 15:48
0
answers

Error: Can not find module dotenv

I installed modele as Dev: C:\Users\mrgen\OneDrive> npm i dotenv --save-dev npm WARN [email protected] No description npm WARN [email protected] No repository field. audited 299 packages in 3.987s found 0 vulnerabi...
asked by 26.09.2018 / 23:38
1
answer

nodejs and express with conection timeout (h13) in heroku when dealing with pagseguro notifications

Hello, I have an api in heroku and she communicates with the pagseguro api (notifications), the wheel that handles the notification needs to pick up the transaction code that is received by post, make an appointment in the pagemobile api get the...
asked by 26.12.2018 / 13:22
0
answers

Variable in EJS

Good morning everyone! So, come on: I'm trying to use Plotly to generate a bar chart, and it accepts variables. I have a connection in NODE.JS with a database, and NODE.JS in thesis (After a console.log in the route) is passing to the view wh...
asked by 11.09.2018 / 14:24
0
answers

JWT and Passport returns 401 React

Good afternoon. I am learning JWT and Passport and am experiencing problems with the same, the problem is this, I can login and save in LocalStorage, and redirect to another page however, even entering the correct data I get a 401 (Unautho...
asked by 29.08.2018 / 20:43