Questions tagged [nodejs-server]

405 questions
-1
votes
1 answer

How to host a HTTPS server with a valid certificate in Node.js using HTTPS library

I want to host my own https server, but the certificate I have generated is not valid, and when accessing from broswers it says insecure connection.
Alex Parra
  • 31
  • 7
-1
votes
1 answer

How i resolved Error: MongoTimeoutError: Server selection timed out after 30000 ms ,couldn't connect to server 127.0.0.1:27017

How i resolved Error: MongoTimeoutError: Server selection timed out after 30000 ms ,couldn't connect to server 127.0.0.1:27017
-1
votes
1 answer

CORS preflight issue on only put request

I am having a weird issue. I get cors error for put request on browser: Access to fetch at 'http://localhost:3015/pathtest/api/v1/results/cc7637578fad1a6fcfb4249fbf000a13/load' from origin 'https://localhost:9444' has been blocked by CORS policy:…
Learner
  • 1,686
  • 4
  • 19
  • 38
-1
votes
2 answers

POST http://localhost:3000/signin 400 (Bad Request) in react

i'm trying to connect the request from user input in SignIn.js to the server.js and it sends me an error of "signin:1 POST http://localhost:3000/signin 400 (Bad Request)" althought when i try to send a json on Postman it works. i also…
jov
  • 63
  • 1
  • 2
  • 8
-1
votes
2 answers

I tried crud operation using nodejs and mongodb. all crud operation is working fine.but get method showing only one data not showing all data

I tried crud Operation using node js and mongodb.all crud operation working fine.but i tried to run get method its showing on;y one record.after i see my code its throwing error (Can't set headers after they are sent).How to solve this issue any one…
smith hari
  • 437
  • 1
  • 11
  • 22
-1
votes
2 answers

How to node js app move to production see on live api data

I tried to sucessfully bulid node js api using crud Operation and working fine in locally.but how to move production to live see the api data.I tried pm2 but also working for local ipaddress.how to solve this problem any solution..
Sudhar San
  • 39
  • 1
  • 11
-2
votes
1 answer

Sequelize: How to Include feilds in to an include model from its include model. (I don't know if it is even possible)

I found a solution to this, but I am waiting for alternatives. I am going to hold on to my answer, and see if there are alternatives to my solution. Any one looking for solution please leave comment and I'll post my answer. I have following…
Zubair Ahmd
  • 208
  • 1
  • 9
-2
votes
1 answer

how to get response this api

** i am try to count total word in PDF this is working fine when normal function but this implementation in API node js i didn't got response this is show promise is pending ** const express = require("express") const app = express() const fs =…
xyz
  • 1
  • 1
-2
votes
1 answer

how to let user download files from node js server?

Guys how to enable users to download stuffs from node js server using it's """core module*"""
-2
votes
1 answer

internal server error in axios.post when i am post data and use schema

there is my frontend code in react js ..... const onClickHandler = () => { const data = new FormData() for(var x = 0; x
Rizwan Ali
  • 955
  • 2
  • 5
  • 7
-2
votes
1 answer

HTTPS IN NODEJS

I am trying to use https in live server but a proxy error is occurring. const https = require('https'); const fs = require('fs'); const options = { key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'), cert:…
-2
votes
2 answers

Can't run node.js server locally

I'd like to run node.js server on my machine but I get this error. What should I do? (Please note I'm not programmer :) MBP-Mike:~ michal$ node server internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module…
-3
votes
1 answer

Pass data from server to HTML page

I have three pages: server.js, user.js, index.js. my server takes data from the request header and builds a User object. the user object has a method that does calculate and save at result. I want to pass the result to index.js or to an HTML page…
aviv.L
  • 39
  • 9
-3
votes
1 answer

How to implement fastest api call in node js?

I tired to implement crud Operation in node js using mongodb.I have 5000 data in mongodb.In data i have lot of images.first time i tried to using get data to show all 5000 datas.but its showing 50s delay to show the data.how to show data without…
smith hari
  • 437
  • 1
  • 11
  • 22
1 2 3
26
27