473,857
questions
1
vote
1
answer
35
views
Architect (arc.http) is not calling other handlers after middleware
I'm just trying to get started with Architect (arc.codes) and am trying to figure out how to make a shared middleware function that can be used with other routes. We have this now in serverless.js, ...
0
votes
0
answers
28
views
Converting CJS Module to ECMAScript when export contain an arrow function
On Server Application Structure documentation page of Socket.io, two methods are presented to use modules for better code clarity. Those modules are CommonJS.
I managed to translate the first to ESM, ...
0
votes
1
answer
45
views
How to find the endpointKey for Azure Custom Question Answering?
I'm working with Azure's Custom Question Answering service and I'm trying to find the endpointKey. Below is the configuration I'm using:
// Configuration for Custom Question Answering
const ...
0
votes
2
answers
51
views
I'm having trouble configuring CORS
I'm working on a frontend application using React with Redux and a backend in NestJS with Firebase. I'm facing a CORS issue that I can't seem to resolve. I've configured CORS on the backend, but I'm ...
0
votes
0
answers
14
views
How to connect to GraphQL server using graphql-ws
I'm working on an internal scrapping service (don't ask me why...) and can't figure out how to connect to the graphql query.
When I inspect the page's network tab I see that the URL it connects to is ...
-3
votes
0
answers
38
views
API to create recurring notifications in Firebase node express [closed]
Title: Why is my API endpoint not pushing FCM notifications with schedule?
Body:
I'm working on a Node.js/Express API endpoint to schedule push notifications using Firebase Cloud Messaging (FCM). ...
0
votes
0
answers
20
views
How to Show a Blur Effect on My Screen Visible to All Connected Users?
I'm trying to implement a blur effect on my screen that should be visible to all other users connected to the video stream. Currently, the blur effect only shows on my own screen and not on others' ...
1
vote
0
answers
42
views
Issues in GCP Cloud Build when trying to build a signed APK
I am having an issue when trying to run a build using Cloud Build on GCP for my Android Application.
The error message:
"Step #2: - In plugin 'com.android.internal.version-check' type 'com....
0
votes
0
answers
33
views
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory When deployed in Azure container app
I am running my application in both Azure container apps and docker container. But I could see the below error frequently when the memory reaches 2GB in Azure container apps only. Why?
But in Docker ...
-4
votes
0
answers
32
views
EJS loops not rendering html tags
I am a beginner in coding using JS, NODE, and EJS.
I used fs.readdir to get some files as an array then to loop it and display filenames as an html list tag. I can see my files using console log. ...
-2
votes
0
answers
28
views
Fetch All Message From Telegram channel
Thank you for your reading.
I'm going to get the all dms from telegram channel that It's not mine, using Python or Nodejs.
It's possible? If is possilbe, please help me.
Thank you very much.
I have ...
0
votes
1
answer
26
views
Limiting Bandwidth for specific user with Nodejs express-session
I want to distribute my limited bandwidth across all users (both upload and download), and I'm planning to divide like this:
10Mbps for users without session
25Mbps for users with session and session....
-1
votes
0
answers
26
views
Unable to Login via Webrower to NodeJS App from Static Frontend Files in /out
I have NodeJS app. Frontend Port: 3000 , Backend Port: 5000. Using WebPage, Unable to login via GUI using browser.
I have exported the frontend app to /out dir. It seems the frontend is not able to ...
-1
votes
0
answers
22
views
Error during deploying through render: Cannot find module '/opt/render/project/src/run'
My github for the same: https://github.com/Sam-Gaming/InstagramClone
error: node:internal/modules/cjs/loader:1148
throw err;
^
Error: Cannot find module '/opt/render/project/src/run'
at Module....
0
votes
1
answer
41
views
why does it open with any pass after i use the correct password once? [closed]
I have 2 HTML files, one with just a form(which takes in a password) and one with secrets. I wrote this js code but when I run it, it refuses every wrong password until I put the correct password once ...
0
votes
0
answers
11
views
How to detect duplicate Job add in Bull Queue in Nest?
I am using bull queue in Nest. I know it adds only jobs with unique ids and if the job exists with an id, it doesn't add it and returns existing job. Is there any way to check whether the job I added ...
0
votes
0
answers
18
views
Unable to implement mfa in Supabase
I am using supabase to implement MFA in my auth but always encounter "Missing Sub Claim error"
I use custom claims during signup to store mfa status and factor ID during mfa enroll during ...
-2
votes
0
answers
10
views
Toolforge hosted server stopped by UID = 0 PID = 0 [closed]
Each times it reaches the oauth callback url it shows this message:
The web service for this tool is running but cannot be reached. Please check the error logs of your web service.
And the error log ...
0
votes
0
answers
27
views
Error if refreshed from any other page (or route) other than "/" in react application created with vite@latest (Under deployment on Vercel)
I have developed a single page react app using vite@latest, my problem is that: If I refresh from the "/" page (or route) then nothing goes wrong, BUT if I refresh from a page(or route) ...
-2
votes
0
answers
65
views
Unable to use npm install [closed]
When I run my npm install command the following messages are displayed. Anyone have a solution?
I use npm version 10.8.1 and Node version 20.16.0.
npm error code MODULE_NOT_FOUND
npm error path C:\...
0
votes
1
answer
23
views
Node Express server returning EADDRNOTAVAIL error when trying to host on 192.168.0.90:3000
when trying to run:
app.listen("3000", "192.168.0.90", () => {
console.log(`Server running at http://${hostname}:${PORT}/`);
});
it returns the error:
Error: listen ...
0
votes
0
answers
19
views
Requests not being forwarded via corporate proxy
I've put together an ExpressJS proxy server, that uses http-proxy-middleware to make the request to the destination that we want to go to. The proxy server works fine, but only when I'm working from ...
-2
votes
0
answers
22
views
How do I have to connect to MongoDB using Node.js? [closed]
(node:20264) [MONGODB DRIVER] Warning: useNewUrlParser is a deprecated option: useNewUrlParser has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version
(Use `node ...
0
votes
0
answers
12
views
Error in appwrite and nodejs not working upon upload
why do i get this
`
POST https://notes-becu.onrender.com/upload 500
Response Headers
content-length: 97
content-type: application/json; charset=utf-8
{"message":"An error occurred while ...
0
votes
0
answers
63
views
JavaScript Heap Out of Memory Error: Allocation Failure
I'm using NestJS with Node.js version v20.12.1, and every time I run my project, I encounter an "insufficient memory" error. I'm not sure where this issue is coming from. Can you help me ...
0
votes
0
answers
21
views
Good way to save and load datas many to many "complex" association with Sequelize
I'm trying to insert and load my data in a belongsToMany - belongsToMany association.
I'm having trouble with the recipe and ingredient association.
Here is my database diagram:
Here is my models:
...
1
vote
0
answers
37
views
Building time-bound leaderboard in Node.JS and MongoDB
We have a document for each user. We award them "oranges" (in-game points) for completing activities.
We store the points given like this:
We have their epoch time along with the oranges ...
0
votes
2
answers
32
views
ExpressJS res.render is not a function
I've searched on google but not yet found an answer so I write here. I am new in ExpressJS so this is my first Express application.
Here is my router:
loginRouter.post('/login', loginController.index)
...
0
votes
2
answers
27
views
GoogleApis - JavaScript heap out of memory
I am building a service that integrates Google Apis using NodeJs with Express.
Everything works fine on my local environment, but when I try to deploy it to my EC2 instance, I get a JavaScript heap ...
0
votes
2
answers
41
views
Changing and hashing passwords with bcrypt
In my node.js app, I have a simple userSchema that allows users to login and all other basic crud operation for authentication. In my change password, where the problem is occurring, I am getting the ...
-2
votes
1
answer
153
views
NGINX blocked the request from frontend through backend and frontend are in the same domain but differs in port [closed]
I built a web application with node.js backend and vue as frontend on the cloud, by using nginx both backend and frontend are served in 80 port (backend) and 8080 port(web frontend). On the backend's ...
0
votes
1
answer
47
views
how to tell kafka client to consume messages in order they arrived?
I use kafka client 2.4.4 to consume messages
const { Kafka, logLevel } = require("kafkajs")
const kafka = new Kafka(config)
const consumer = kafka.consumer({ groupId: "Default" })
...
0
votes
0
answers
39
views
Create a history table and keep track of all the updates to a document
I have a NestJS application that uses mongoose and MongoDB. I need to capture all changes/versions of this document so that I can display this as a history of the document, what changes were made by ...
1
vote
0
answers
25
views
oracle database does not connect with knex
Good afternoon.
I'm trying to connect an oracle database with knex.
However, I receive an NJS-500 message whenever I try to connect.
I created a nodejs service with knex.
I've tried different ways, ...
0
votes
0
answers
21
views
Capture mirroring display on Windows
I'm working on capturing mirroring display on Windows at Electron. Mirroring display is external screens that checked the mirroring option at the display settings. npm systeminformation package ...
0
votes
0
answers
27
views
How to debug CSS design issues persisting **only** on production?
I Have a Node.js based url shortening GitHub project deployed on vercel and Its been a while I've been facing a discrepancy in the CSS design e.g: HTML table and body elements on the Pixel 7 device ...
1
vote
0
answers
18
views
How to generate the Typescript declaration files .ts.d from a Node Native Addon (C++)
I have a C function I want to use in a Typescript NodeJS project.
The working minimal project example
I created .CPP file that wraps my C function using N-API and make it available to NodeJS. I ...
-4
votes
0
answers
16
views
nodejs is not upgrading from 17.1 to 20.1.1? [closed]
nodejs is not upgrading from 17.1 to 20.1.1
i tried to upgrade nodeJS version 17.1 to 20.1.1 using CLI but error occurs continuously .
Need solution of my nodeJS version upgrade.
-4
votes
0
answers
41
views
Angular Nodejs Incorrect Login or Password
I'm trying to figure out the best way to handle login(incorrect username or password).
When user logs in I do my authentication on server side which works the way it is suppose to, if incorrect ...
0
votes
0
answers
27
views
Getting ORA-03106: Fatal Two-Task Communication protocol error in NodeJS calling a procedure
Currently, I'm using NodeJS/Typescript and node-oracledb (v5.5.0) to connect to an oracle database to run some queries. I'm using an oracle connection pool to get the connections. What I've been ...
0
votes
0
answers
34
views
Jest mocking core NodeJs module
I'm trying to write an abstraction layer for an Electron application that runs in a Node (v20) environment. This layer will make it so that there is only one access point to the file system for the ...
0
votes
0
answers
15
views
Unknown extension .ts for wdio.web.chrome.conf.ts
I have problem with Jenkins job after moving agent to K8S.
I'm getting this error:
2024-08-26T14:59:08.150Z ERROR @wdio/config:ConfigParser: Failed loading configuration file: file:///home/jenkins/...
0
votes
0
answers
34
views
How can I use the concat operator (||) in Sequelize for ilike comparison?
I'm working on an express.js project, using Sequelize on a postgres database, and we have the following query:
SELECT *
FROM Client
WHERE first_name || ' ' || last_name ILIKE '%search term%'
I'm ...
-2
votes
1
answer
82
views
how to enable to use require and import statment in javascript file? [closed]
I have below package.json and using a package and try to use both require and import statment in same file; to do that here is what did so far but not working
First Trial
// package.json (v1)
{
&...
0
votes
0
answers
30
views
Why nextjs shows server error every some hours
I have a next.js application and two days now, it goes down (internal server error) every three hours. So in order to restore it back, first i have to do the below:
lsof -i (to find the PID) usually ...
0
votes
1
answer
22
views
Send s3 file in axios request
Good day, I'm getting a S3 file with aws-sdk/client s3 and I want to send it through an axios post request. I get the file, append it to a form data and send it in the request
I have written the ...
0
votes
1
answer
37
views
Streaming large dataset to child process (as JSON)
I'm trying to send a large amount of data that is stored in memory to a child process. Specifically I have a large dataset represented as JSON in Node.js which I want to send to a child process I am ...
-1
votes
0
answers
21
views
passportjs + googleoauth20 + express-session (valkey store optional) req.user undefined
I'm so tired i spent the whole day trying to fix it but no matter what i do it's not working all i get is undefined PLEASE PLEASE HELP!!!!
I Uploaded All The code On GitHub
https://github.com/Parag-47/...
0
votes
0
answers
14
views
Invalid JWT Signature When Integrating Zoom SDK in React and Node.js
I'm trying to integrate the Zoom Meeting SDK into my React application using a Node.js backend to generate the JWT signature. Despite using the correct credentials and following the official ...
0
votes
1
answer
15
views
Error with typescript when install dependencies getting a lot of ts errors
I'm trying to run a repository https://github.com/HospitalRun/hospitalrun-frontend.git locally. I followed all the instructions, but when I run npm start, I get a series of TypeScript errors.
Here are ...