Questions tagged [nodejs-server]
405 questions
0
votes
2 answers
html to plaintext with NodeJS on server side
on the server-side, using Nodejs. I receive a text message containing HTML. I want a function that converts the html to plain text. And please don't tell me to add the tag or
. (convert_to_html function doesn't exist in…

just a noob
- 105
- 1
- 1
- 6
0
votes
2 answers
Can I maintain two user collections in MongoDB?
I am new to node and practicing it...
I have a requirement where user will have a profile section Where he fills lot of data like his educational details , employment details , address , and many other details.
As of now I am creating user…

T Naveen
- 23
- 3
0
votes
1 answer
How to integrate OIDC Provider in Node jS
I tried to Integrate OIDC Provider to Node JS and I have a Sample Code. So, I run this Sample code it's throwing an error(unrecognized route or not allowed method (GET on /api/v1/.well-known/openid-configuration)).The problem is…

Hariprasath Vengatachalam
- 155
- 6
- 18
0
votes
2 answers
How to pass post request in phone verification for Twilio API using Typescript
I tried but it's still showing this error Missing required parameter To in the post body I was TO data also. but it showing same error how to fix this issue.
Twilio Code
import axios from 'axios'
import qs from 'qs';
import * as Twilio from…

Hariprasath Vengatachalam
- 155
- 6
- 18
0
votes
0 answers
I have installed socket.io in my windows 7 (64 bits) computer. I get an error of "No valid exports main found for socket.io". Any fixes?
I am using a windows 7 (64 bit) computer. I have an issue using socket.io for some reason. I am using VS Code and I have attached an image of the error with the GitHub link to produce the error. In this project, I am creating my own version of ZOOM…
0
votes
1 answer
NODEJS,SOCKET on port 8070 connecting on rendering but not directly opening
I have a cpanel where Apache is activated and displaying my website on port 80,443 https://mydomain.io
The below setup works on port 80 but not on other ports like if I want to run this at Port 8070
I want to run nodejs on port 8070 i.e…

Rohit gupta
- 211
- 3
- 18
0
votes
2 answers
i can't see difference between put and patch method
I just want to like a quote or dislike if already i liked the quote. So first i find the quote and then i check if i already liked the quote, if not then i like, otherwise i dislike.
I have a router like below
router.put('/:quoteId', isAuth,…

nasibeyyubov
- 1,735
- 3
- 11
- 28
0
votes
0 answers
nodejs http.get() wont pipe large files or long videos to the reasponse?
Sorry for any inconvenience with the question title, but I don't know how to describe issue.
I have the following code to fecth remote video and pipe it to the response (play it in the browser using html5 video tag):
const express =…

Martin Wittick
- 433
- 1
- 4
- 14
0
votes
1 answer
NodeJS + Fedora 32 refused to connect
Simplest server (same result with '0.0.0.0' and removing this property)
const http = require('http');
function handleRequest(a,b) {
console.log('!');
}
var server = http.createServer(handleRequest);
server.listen(4000, '0.0.0.0', …

Eugene
- 905
- 1
- 10
- 22
0
votes
1 answer
nodejs is either not installed or its executable not present in path
Whenever running an Appium test while starting appium server am facing an error saying nodejs is either not installed or its executable not present in path
I have installed node-js in my machine also installed appium through the command npm install…

Aman Khan
- 103
- 3
- 11
0
votes
0 answers
How to use GET by id when id contains "/"
I am working with Node.js and aws-sdk building an API so I have a GET function to download files by ID or KEY
export const downloadFile = async(req: Request, res: Response) => {
const params = {
Bucket: AWS_S3.Bucket,
Key: req.params.key
…

Bladimir Medrano Vargas
- 608
- 8
- 15
0
votes
2 answers
MySQL error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
Could someone tell what error "ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client" means?
My code:
var mysql = require('mysql');
var con = mysql.createConnection({
…
user14992697
0
votes
1 answer
Postman aways identify 200 on Nodejs + Express even when i send other
I'm using API coded in NodeJS but always Postman identify HttpStatus 200, even when i send 4XX or other.
I'm using express and body-parser
As you can see below:
The code is:
router.get('/', async(req, res) => {
try{
let dados =…

Felipe Souza
- 67
- 9
0
votes
2 answers
UPDATE: why is user role not changing after edit in mongodb?
i am trying to make a authentication user part by nodejs/expressjs with mongodb where users will have different roles and the parameters of the users will be saved in mongodb. in case of signing in for every user, they will be saved as "user" by…

ali
- 135
- 1
- 13
0
votes
1 answer
Get HTTP headers/body from async hook HTTPINCOMINGMESSAGE
I'm trying to get the HTTP headers and the HTTP body from the IncomingMessage instance provided by the async hook HTTPINCOMINGMESSAGE:
import asyncHooks = require("async_hooks");
import { IncomingMessage } from "http";
asyncHooks.createHook({
…

brillout
- 7,804
- 11
- 72
- 84