Skip to main content
Filter by
Sorted by
Tagged with
-4 votes
0 answers
35 views

Postman backend API and Angular Application [closed]

I need help getting my angular application to communicate with my backend api. I need my product to look like the attached image. I currently am using postman that takes JSON data, and it works ...
-1 votes
1 answer
33 views

Express V5: Is there any way to modify `req.query`?

Express v5 changed the behavior of req.query: The req.query property is no longer a writable property and is instead a getter. That being the case... In our ExpressV4 app, we use Joi in middleware ...
0 votes
0 answers
19 views

In prisma migration, it gives this error: Already in sync, no schema change or pending migration was found

I recently added a new field called membersCount in my community model in the schema.prisma , as usual after that i migrated my schema npx prisma migrate dev , but it shows ----> Already in sync, ...
1 vote
2 answers
2k views

Node - Push notification when browser closed

I'm new to node and socket.io. I just have done a chrome extension with push notification. In that i'm facing a issue the notification is not sending when chrome browser closed. The server notifies ...
-3 votes
1 answer
38 views

Local DB vs. Payment Provider Records: Transaction History Strategy

So i am in the process of integrating a third party payment provider in my app. I am at a cross road, seems to me that anytime a user want to see their transaction history i should hit the third party ...
7 votes
5 answers
31k views

How to store jwt in cookie and pass it to authentication function when redirecting a page?

I have a node.js express backend built with Postman and tested with Jest. I wrote a front end with hbs and the next step is to stitch them. However I still keep getting "please authenticate" error ...
44 votes
7 answers
67k views

Unable to import ESM .ts module in node

I have been trying to import an ESM module written in typescript in nodejs. But I am getting the following error: An import path cannot end with a '.ts' extension. Util.ts export class Util { ...
0 votes
1 answer
25 views

Why Can This Not Write To Directory 'Output'?

I am attempting to write a file to an existing directory, using node, path, and fs. How it's supposed to work: Init mock data. Loop through mock data. Write mock string to existing directory 'output' ...
33 votes
4 answers
51k views

Convert Uint8Array into hex string equivalent in Node.js

I am using Node.js v4.5. Suppose I have this Uint8Array variable. var uint8 = new Uint8Array(4); uint8[0] = 0x1f; uint8[1] = 0x2f; uint8[2] = 0x3f; uint8[3] = 0x4f; This array can be of any length ...
0 votes
1 answer
32 views

Best way to store Hyperledger Fabric user credentials with fabric-gateway SDK

i have just started using hyperledger fabric and i am using the @hyperledger/fabric-gateway SDK (replacing the deprecated fabric-network) and need a secure way to store/retrieve Fabric user identities ...
1 vote
1 answer
39 views

not able to add bot in second teams channel not getting welcome in second, thrid channel but getting in first channel

not able to add bot in second teams channel not getting welcome in second, third channel but getting in first channel. able to get welcome in second or third channel. but for now not getting. please ...
1 vote
4 answers
9k views

How can I get $node index.js to run index.js in my command line?

Im trying to get my index.js file to run in my command line using the following code. $node index.js In the command line I type in the following: $node index.js This is what is returned to me: As ...
4 votes
0 answers
424 views

Convert aws polly synthesizeSpeech response to twilio mulaw format in NodeJs

I have a Twilio bi-directional stream running, so when I get the Twilio payload I process them and respond back, while responding back I am using aws-sdk Polly service to get the text-to-speech data, ...
7 votes
3 answers
9k views

Node.js google cloud storage authentication using credentials token

I'm trying to authenticate with google cloud storage using a credentials token. Can't find an example anywhere in the node.js GCS api docs on how to do so. They instruct to generate and download a ...
1 vote
0 answers
28 views

lightning wallet connection by LNURL Auth + LNBits [closed]

I'm currently integrating a Bitcoin Lightning wallet into my Node.js backend and React.js frontend. Right now, I'm trying to solve a bug where creating an invoice through my LNURL Auth client doesn't ...
10 votes
7 answers
22k views

Is it possible to install Node.js on macOS High Sierra Version 10.13.6? This is the latest version my mid 2014 Macbook Pro can support

My mid 2014 Macbook Pro can't be updated past High Sierra 10.13.6. I am trying to install ANY version of node.js. Is there any way to get Node.js running on my device? My end goal is to use Angular I ...
13 votes
3 answers
9k views

Node-Postgres Error: timeout exceeded when trying to connect

We have a production deployed Node js application which services a good amount of traffic throught the day. The application is in loopback and connects to postgres db as with its postgres connector. ...
8 votes
4 answers
17k views

'require' keyword doesn't work within Node Red Function node

The first line in a Node red Function Node is var moment = require('moment-timezone'); I am trying to establish a timezone correct date/time stamp for sensor data. I get the following error when this ...
-1 votes
0 answers
27 views

My web app doesn't work when deployed in production

I have created a weather App React as frontend and Node js as Backend. The app uses open weather api to get the weather data and shows it in the frontend. The problem is that the runs on development. ...
1 vote
1 answer
35 views

PostgreSQL 63-Character Limit Issue in Sequelize with Multiple Includes

I’m currently working on a project where we are using PostgreSQL with Sequelize to perform complex queries involving multiple nested include relationships. However, we’ve encountered an issue related ...
0 votes
1 answer
60 views

Nodemailer - Emails send but i do not receive them

I am working on a project that uses nodemailer, when i submit the form, i get a 200 sucess and no errors from nodemailer but i don not recieve the email in my mail. import nodemailer from "...
0 votes
0 answers
35 views

Cannot find module '../../prisma/generated/main/index.js' while starting NestJs Project?

I have two Prisma schemas like this: Schema1 Generator: generator client { provider = "prisma-client-js" output = "./generated/main" } Schema2 Generator: generator client { ...
2 votes
4 answers
732 views

Concurrent in Nodejs

I have node server like below. And i push 2 request that almost simultaneously(with the same url = "localhost:8080/"). And my question is: "Why the server wait for 1st request handle done, then 2st ...
916 votes
44 answers
1.1m views

How to fix "ReferenceError: primordials is not defined" in Node.js

I have installed Node.js modules by 'npm install', and then I tried to do gulp sass-watch in a command prompt. After that, I got the below response. [18:18:32] Requiring external module babel-register ...
13 votes
1 answer
15k views

Error while loading libatk-bridge-2.0.so.0

I have created a NodeJS app which is using Puppeteer. Locally (Windows) it is working totally fine, but when I wanted to deploy the app on a shared hosting platform (Linux Server), I got the following ...
-2 votes
0 answers
24 views

How do i upload multiple images to cloudinary via streams?

I am building a travel-log app where authenticated users can pin places they visit and add records. I am planning to add images on record with cloudinary on server. this is the current way i am doing ...
0 votes
0 answers
18 views

How does Express/Passport detect when a session is manually deleted from MongoDB without calling sessionStore.get()?

I'm using express-session with connect-mongo as the session store in my Node.js server. I’ve added console logs to the session store methods to trace calls to .get(), .set(), .touch(), and .destroy() ...
154 votes
20 answers
128k views

AWS Lambda API Gateway error: "Malformed Lambda proxy response"

I am trying to set up a hello world example with AWS Lambda and serving it through API Gateway. I clicked the "Create a Lambda Function", which set up the API Gateway and selected the Blank ...
0 votes
2 answers
23 views

Nest js deploying on MonsterASP

I'm currently working on deploying a NestJS application on MonsterASP and would appreciate any guidance or shared experiences from those who have undertaken a similar task. What I've Done So Far: ...
2 votes
0 answers
64 views

Cloud Run installs JS Modules every call

I have a cloud run function in python, and some JS files. The python code calls the JS code via processes. For some reason every time I call the cloud run function it seems to install jsdom which ...
1 vote
2 answers
383 views

How to pnpm install package from deno jsr?

I have pnpm-managed monorepo workspace. I want to install package which was published on deno repo using jsr. How would I do that? NOTE: previously I've been using npm and jsr has workaround for that ...
2 votes
1 answer
233 views

NodeJS MSAL Authentication: 430 4.2.0 STOREDRV Mailbox Logon Failure When Sending Email via Exchange Online SMTP

I am experiencing a persistent issue when attempting to send emails via SMTP using Microsoft Exchange Online in a NodeJS application. The authentication process appears to be successful, but email ...
0 votes
0 answers
30 views

Event handling for encapsulated socket.io server

I am creating a node.js webapp with socket.io. I encapsulated my socket server and namespaces in a single module called socketManager.js because I heard this is generally good practice. This module ...
2 votes
2 answers
140 views

Issues with Image Upload in Express.js Using Multer

I am developing an Express.js application and trying to add the facility of image upload by Multer. I am getting some issues, so any kind of help will be appreciated. Problem: The file doesn't upload, ...
2 votes
3 answers
12k views

What is routes/index.js and its purpose?

What is the purpose of this file? Is this where 'all' the get and post calls get instantiated? If so, wouldn't this be a very huge file when working with large scale projects? I've tried calling a ...
70 votes
2 answers
35k views

How to properly use "keywords" property in package.json?

Is it good to list as many as possible keywords for a package (hundred?) or this is a bad approach? How to list keywords properly?
8 votes
2 answers
23k views

Error: Module did not self-register. [duplicate]

Server: Ubuntu server 14.04 Node: v4.2.6 LTS npm: 1.3.10 I pullled my colleage's work from git remote. He made the node_modules as .gitignore. So I have to npm install the modules. But after a ...
0 votes
2 answers
229 views

Improve performance between calculating the distance between two points

I have this formula code to calculate the distance between two points - but its got performance issues. const pharmacy = await knex('place_of_interest') .select( knex.raw( `id, ...
-1 votes
1 answer
670 views

why can't I overwrite file (fs node.js)?

I want to create a config file before specific actions. So this means I created a config file in my folder, at first containing nothing. Then I run following code: db.getData(function(err,data) { //it'...
2 votes
1 answer
157 views

How to upload nested files using multer?

I want to know the way of uploading multiple images using multipart/form-data when the required request body is nested as below. Currently I tried uploading images using multer with single key value ...
3 votes
2 answers
1k views

How to upload file using Multer from child object

I have a User object in my application, where each user Object has a Nominee as a child object With a File field name photo. JSON Object { name: 'Jhon Doe', phone: '01548761645', email: '...
9 votes
1 answer
27k views

package.json path don't exist after expo start was run

I get the below information in the terminal once I run expo start in the terminal. Before expo start I have run: repository was coppied into the folder npm install -g yarn npm install --global expo-...
1 vote
3 answers
889 views

A super simple Multer question, nested file uploading

I'm trying to do an image upload with Multer and Express. Doing just an image upload is going fine and everything works, the problem is, I want to send more than just one photo. Let me explain. I got ...
0 votes
0 answers
19 views

Http streams breaking issues after shifting to http2

So in my application i have to run alot of http streams so in order to run more than 6 streams i decided to shift my server to http2. My server is deployed on google cloud and i enabled http2 from the ...
-3 votes
0 answers
42 views

Authorization for NextJS Application

I want to integrate authentication and authorization into my application. For now the project structure is like this - ├── .next ├── node_modules ├── public ├── src │ ├── Components │ │ └── ...
0 votes
2 answers
25 views

How to properly type Axios with response interceptor + useSWR Fetcher in TypeScript?

I'm building a Next.js app with useSWR, axios, and TypeScript. I have an Axios instance with a response interceptor that returns response.data: // api.ts import axios from "axios"; export ...
25 votes
2 answers
43k views

Node Fetch Request Fails on Server: Unable to Get Local Issuer Certificate

~ I'm using Node 10.9.0 and npm 6.2.0 ~ I have the following app running that allows me to make a request to the same site over http and over https. var fetch = require('node-fetch') const express = ...
7 votes
2 answers
9k views

how to get InstanceID via ec2 api?

I need a function which tells me the instanceID, I was searching here for a function, but you always need the id... Yeah and this is the problem. I'm not allowed to use the console, need to find it ...
0 votes
1 answer
93 views

Proxy uri not found after creating new proxy in api-config?

I am trying to setup a proxy, following the documentation here: https://backstage.io/docs/plugins/proxying Here is my app-config.yaml, I would like to create a proxy which points to another locally ...
-1 votes
0 answers
18 views

How i can handle better auth onApiError?

enter image description here I have configured better auth in backend: import { AuthContext, betterAuth } from "better-auth"; import { prismaAdapter } from "better-auth/adapters/prisma&...

1
2 3 4 5
9453