Questions tagged as 'nodejs'

2
answers

Alamcenar variable from a promise

I have the following fragment that what it does is store the object obtained in response to the promise in the variable objectNew .then (res = > ..... var objetoNew ={}; firebaseService.tiendas().then(res=>{ console.log('method1', res)...
asked by 04.11.2018 / 23:11
0
answers

Video Server with Node, Express, MongoDB and Angular

I would like if you could guide me a bit, I am making an application of videos, the user registers, uploads videos, and sees them. The administrator accepts or rejects videos. The video is sent to a stock agency. My problem is the followin...
asked by 29.10.2018 / 21:15
0
answers

Response with status: 0 for URL: null

Dear I have the following error, I want to return an error message with the content inside a bootstrap alert, but it does not leave me as you see in the images. What do you think it could be, thanks in advance. I'm working with Node.js, Angular,...
asked by 26.10.2018 / 23:08
0
answers

parse error: Expected another key-value pair Heroku

I'm trying to host a bot for discord in heroku but doing git push heroku master gives me this error: Node.js app detected remote: parse error: Expected another key-value pair at line 41, column 1 remote: ! Un...
asked by 23.10.2018 / 12:06
0
answers

javascript - mercadopago.ipn.manage error Invalid Topic (undefined).

I am trying to create a receiver for the ipn of mercadopago, saying this, I receive an error that marks me: Unhandled rejection Error: Invalid Topic (undefined). The topics available are: preapproval, authorized_payment, payment, merchant_o...
asked by 24.10.2018 / 03:51
1
answer

Api Nodejs jwt-Simple

I'm putting together an api with nodejs, and I want to include the token with jwt-simple, I can create token and use it to access the routes, but when you want to check the token expiration directly it jumps through the 'invalid token' error cat...
asked by 20.10.2018 / 01:19
0
answers

error when installing npm dependency

I'm trying to install this dependency: npm install mysqljs/mysql But I get an error loading it npm ERR! code 1 npm ERR! Command failed: D:\Program Files\Git\mingw64\bin\git.EXE submodule update -q --init --recursive npm ERR! fatal: D:\Pr...
asked by 18.10.2018 / 02:03
0
answers

Multiples rooms socket io

as they are. I have a question with some sockets in socket io. What I'm trying to do is create several rooms, and then send them an event that runs every second, that's an interval .. var Room = function (room_name, data) { this.id = ro...
asked by 13.10.2018 / 23:31
0
answers

numbers in express and nodejs (body-parser)

I have the following problem. When the POST is made to the bakcend (Nodejs) and the last information is logged in the console the value of the inputs of type="number" is shown as if they were strings. This is what it says: { student: 'a',...
asked by 11.10.2018 / 20:25
0
answers

OpenTok, how to establish value to connections and find the value in each client?

I'm new to openTok and I've run into something that I've worked around a lot and I have not managed to get the solution I'm doing a video conference room where there is a moderator who can get permission to certain controls in the room, and s...
asked by 19.10.2018 / 05:59