Questions tagged as 'node.js'

0
answers

Integration between Geoserver, NodeJS and OpenLayers

Good evening, I need some tips on an academic job that I'm having some difficulties with and hopefully become easier with the help of the community. I have an HTML page with a map in OpenLayers, in which I can already insert into BD (Mongo...
asked by 02.12.2018 / 03:02
0
answers

Timeout when requesting service in container docker

I created a docker image with node, the image contains a project with a POST service that creates some information in redis. When I run the project out of the container and call the service the Postman returns 201 created normally. But when I ru...
asked by 29.11.2018 / 13:21
1
answer

Mongoose query returns an empty Array

I'm studying mongoose and am facing a problem. When trying to use find it just returns an empty vector while it should return all of MongoDB. Here is the code. var mongoose = require('mongoose'); var Schema = mongoose.Schema; mongoose.c...
asked by 03.12.2018 / 06:29
0
answers

Access-Allow-Control-Origin does not restrict access from other domains

I'm creating an Api with Nodejs , where I set up the application header for Cross-Origin Resource Sharing to work properly. app.use(function (req, res, next) { res.header("Access-Control-Allow-Origin", "http://localhost:3000"); r...
asked by 10.12.2018 / 18:41
0
answers

Error in AJAX request for server Node.js. (readyState: 0 and status: 0)

I am making the following AJAX request: function ping(){ return new Promise((resolve, reject) => { $.ajax({ type: "GET", url: "localhost:5000/ping", success: function(res){ res...
asked by 24.11.2018 / 19:04
0
answers

How to improve this Javascript code in Nodejs?

I would like to know how I could improve this code. Thus, it would avoid too many excesses - initial errors. Moreover, through these modifications I could understand, understand, learn in another way. This would add new features and gain more pe...
asked by 20.11.2018 / 21:49
1
answer

Node Error When Installing Bootstrap and Jquery

** Live Development Server is listening on localhost: 4200, open your browser on link **  C: \ cms \ node_modules \ jquery \ dist \ jquery.js 'error: ENOENT: no such file or directory, open'     at Object.openSync (fs.js: 436: 3)     at Object...
asked by 18.11.2018 / 14:52
1
answer

Function does not arrive at the endpoint - Ionic 3 + API NodeJS

In an app in Ionic 3 I have this function validateCupom () which when called sends a GET to, in case it has return 200 (OK), then calls the other function setConfig (). Belowisthefunctionthatneedstobecalledifthefirstonesucceeds. Attheend,the...
asked by 18.11.2018 / 08:57
0
answers

Error: Server returned HTTP code: 404

Good morning, I'm trying to connect the Earth Engine API to my server, but I'm encountering the following error. Error: Server returned HTTP code: 404 at Object.ee.data.handleResponse_ (C:\Users\EST\Desktop\express\node_modules\@google\ea...
asked by 21.11.2018 / 12:23
0
answers

Azure Storage - no storage

I'm trying to save images to storage, the whole process happens smoothly, until the time I'm going to look at the storage and: This is my script const blobSvc = azure.createBlobService(config.containerConnectionString); let filen...
asked by 14.11.2018 / 20:41