Questions tagged as 'node.js'

1
answer

What should I return in a REST API when the results are either true or false?

When I search an information in the database and this information is not returned (since it does not exist), what should I do? Filling a JSON object for GET return? And if I return false? Can the response be the status code 201 or 404? What w...
asked by 21.03.2018 / 20:14
0
answers

Doubt about connection node.js

A question about node.js ... I am sending a request, to save to the database. My question is, what is the correct way to create simultaneous connections in the bank? Because when the function executes, the node terminates, and I did not want it...
asked by 09.03.2018 / 14:44
0
answers

Authentication with js node and passports using GCF

I would like to know if there is a way to authenticate queries of cloud functions in google using nodejs and passport, whenever I want to know what is required to verify that I am authenticated and return to the request     
asked by 14.03.2018 / 15:07
0
answers

Node.JS does not save the data of a form

Good afternoon everyone! I'm trying to save the data from a form, and I have no idea why it's not saving. I remember that I would have to use a stringify, or something like that, but I can not see it. Below are the view (ejs) and the index.js in...
asked by 08.03.2018 / 20:06
0
answers

API Requests with Ionic 3

I have a method in an Ionic 3 (local) application consuming features of an external API, using the following method: post(resource, body): Observable<any> { return this.http .post<Observable<any>>('${this.apiUrl}$...
asked by 08.03.2018 / 21:44
0
answers

Problems Installing NPM Packages

I was installing the electron-builder dependency, but I can not complete the installation. Whenever I try to run the command to install this dependency, nodeJs returns this error: I am running the command in administrator mode and s...
asked by 22.03.2018 / 15:33
0
answers

URIError: URI malformed in NodeJS

Server-side code const bodyParser = require("body-parser"); const express = require("express"); const app = express(); const port = 8080; app.use(bodyParser.urlencoded({extended: false})); app.use((req, res, next)=>{ res.setHeader("Acc...
asked by 06.03.2018 / 01:55
0
answers

angular error 4 HPE_INVALID_CONSTANT

I'm trying to download via api rest, my application works fine with api, but when I try to request files, PDF for example it returns the following error: [HPM] Error occurred while trying to proxy request /api/v1/invoices/5aa030e1e1bfd700105e...
asked by 13.03.2018 / 15:55
0
answers

Read file igc (log track) GPS

I'm trying to find information on the internet about reading GPS files. I still do not know which extension is most used by GPS devices, however, I use XCSoar to record paraglider flights and it creates files with .igc extension. Basically I wan...
asked by 05.03.2018 / 18:22
0
answers

return values of asynchronous methods javascript

Hello, I have a problem here, I need to use the node request module twice. one to get the link from one page and the other to get the contents of a post. This way, I have the following problem: request('https://www.pensarcontemporaneo.com/,...
asked by 10.03.2018 / 01:31