Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
27 views

Server not receiving httpOnly Cookies (Node.js - Express)

I have kind of a weird problem: Using nginx and node.js with express, i set up two services on the same machine with multiple server blocks. One of them is an authentication server (i want to build ...
Leuchtkeks's user avatar
-4 votes
0 answers
50 views

Why isn't apache server letting my Javascript CSS media and many other files through [closed]

I tried deploying my sveltekit app through a reverse_proxy using apache , it worked but all the styles are gone and functionality Image 1 Showing Responses Image 2 Showing APPLICATION I tried this ...
Em Pax's user avatar
  • 1
0 votes
1 answer
36 views

How to get output from NodeJS in an Azure Function App?

I have an Azure Function App which is a single NodeJS file. It's purpose in life is to take in a URL parameter caleld "code", and based on the value of that parameter, read some data from ...
RobG's user avatar
  • 594
0 votes
0 answers
34 views
+100

Firebase Dynamic Links losing app parameters in Capacitor Browser redirect chain on Heroku

I have a weird issue with Firebase Dynamic Links in my Capacitor app. When using deep links to authenticate users via SAML, it looks to be losing specific URL parameters but only in my staging ...
J.Do's user avatar
  • 201
-4 votes
0 answers
27 views

I can’t access the methods of my mere class since my child class in node js how to do? [closed]

terminal_error first_child_class. child_class. server_in_index.jsI want to make sure that a child class of another child class is done in a node js application, at initiation, all the constructors are ...
Developpeur Web's user avatar
0 votes
1 answer
36 views

Download 1 to many excel files from Angular Api into zip folder

I've currently got a program that works in downloading a singular file from backend, constructing it into a blob and converting it to an excel. As seen below. let filename = 'download' + this....
JustThatGuy93's user avatar
-2 votes
0 answers
38 views

I am partaking in a node.js course when I try to install a Node Package I receive the response shown in the image attached below

image showing response The image shows what I have tried and I was expecting to install underscore. Help with this matter would be greatly appreciated. I believe the image shows all the information ...
Richard's user avatar
0 votes
0 answers
22 views

Using puppeteer cluster with multiple tabs per chrome?

My website with 100s of users needs the ability to launch headless puppeteer instances, load data into it, and take a screenshot. This works fine with one chrome at a time, but if I need to scale this ...
Mike K.'s user avatar
  • 606
0 votes
0 answers
37 views

Error: The default export is not a React Component in "/page"

I am getting this error after I moved my page.tsx from app directory to the group route that I created in the same app directory. The reason why I moved this home page to group route because I want to ...
Marccodes's user avatar
1 vote
0 answers
45 views

running NPM install command fails on nasm and libcurl errors

I went through all posts i could, installed packages 1 by 1 and even did a clean install of everything starting from nodeJS. The error im getting is: npm warn cleanup Failed to remove some directories ...
MarkedOne's user avatar
0 votes
0 answers
16 views

TypeError [ERR_INVALID_ARG_TYPE]: The "oldPath" argument must be of type string or an instance of Buffer or URL. Received undefined. Encoutring error

Getting error on filepath and originalFilename.. I started learning MERN from scratch and encountring with these error mentioned below, I tried to resolve it,but not avail. when i run this file ...
Danish Butt's user avatar
0 votes
0 answers
27 views

How to add join query to a services where all model is initialized in seperate services and a particular service needs a model [closed]

Here is the customerservices retrieving all the carts item and the result look like this { "status": 200, "msg": "success", "result": [ { ...
alex's user avatar
  • 35
-3 votes
0 answers
45 views

React app doesn't load if the page is refreshed? [duplicate]

I am developing a webbapplication using a MERN stack with React being the frontend. The App.js returns a React Router: return ( <div className="App"> <Router> ...
user28751094's user avatar
-3 votes
0 answers
50 views

Why am I getting error: is not a function? [duplicate]

I have: /services/db.js import mysql from "../node_modules/mysql2/promise.js"; import config from "./config.js"; async function query(sql, params) { const connection = await ...
Crowdpleasr's user avatar
  • 4,028
-1 votes
0 answers
18 views

while run build i am getting this error Export encountered an error on /page: /, exiting the build. ⨯ Static worker exited with code: 1 and signal: n

Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error Error: at C:\Users\pc\Desktop\eBlosis.next\server\chunks\3824.js:1:45218 at d (C:\Users\pc\...
Trending Song's user avatar
0 votes
1 answer
63 views

Getting Error code 404 from Phone Pe PG Integration via Web Flow in Express |Node JS

I am integrating Phone Pe Payment Gateway on my Web Application. Getting response as 404 from Phone Pe API {"success":false,"code":"404"} On the Backend I have done the ...
Aftab Ahmed's user avatar
2 votes
1 answer
37 views

Why can't I swap with some SPL tokens when I use Jupiter v6 Swap API?

I am gonna buy and sell SPL tokens using Jupiter Quote API and Swap API. My code works with some tokens but I failed with some tokens. However, I can see lots of holders for those tokens on Solcan. I ...
Oleksii Vasylets's user avatar
-2 votes
0 answers
19 views

live-server ignores settings.json configuration and serves from project root instead of specified folder

I have installed live-server globally on my system and am using it in a project within VSCode. I have a settings.json file in a .vscode workspace-settings folder in my project with the following ...
Vincent Pierre Chevalier's user avatar
-2 votes
0 answers
42 views

npm not recognizing node? despite path being correct

I just installed node (LTS) and let chocolatey install, just rebooted my PC, and tried making a project but npm wont run node?, i checked everything, the paths, reinstalled node several times, ...
Alberto Huarastaca's user avatar
-1 votes
0 answers
87 views

Why does my React app show user details after logout and refresh?

Problem: I am working on a React application that uses context to manage user state. When a user logs out, their details should be removed. However, after logging out and refreshing the page, the user ...
Ujjwal Gaihre's user avatar
0 votes
1 answer
47 views

How do Firebase v1 functions access secrets?

I have been moving a set of Firebase functions to version 2 and I can access secrets in OnCall functions using this syntax: export const fn = onCall({ secrets: getSecrets() }, () => ... The ...
jmc42's user avatar
  • 424
1 vote
1 answer
31 views

Why is this Express Router catchall route overriding a route above it?

I can't figure out why this routing configuration, with eRouter being an express.Router() defined in an index.ts and passed in, is causing the top route of GET /wzdx/DeviceFeed to be overwritten and ...
jrkinnard's user avatar
0 votes
1 answer
43 views

npm install - npm Warning of Damaged Lockfile

I am trying to run npm install and am receiving an error of a damaged lockfile: npm warn reify invalid or damaged lockfile detected npm warn reify please re-try this operation once it completes npm ...
sweeney's user avatar
  • 15
0 votes
0 answers
38 views

ReferenceError [Error]: Cannot access 'initialize' before initialization

I want to start a independent thread in Node.js to do some heavy task, this is my code look like: import logger from "../../common/log4js_config.js"; import { iterateAllKeys } from "../....
Dolphin's user avatar
  • 39k
-2 votes
0 answers
15 views

"message": "E11000 duplicate key error collection: BusBooking.bookings index: adminId_1 dup key: { adminId: null }", [closed]

first created a booking collection using adminId and busId then one document added to collection now I change the model to userID and busId it show this error I try to delete the collection and ...
Hari Babu's user avatar
0 votes
0 answers
61 views

AWS Serverless Elasticache Valkey

Today I created Serverless Elasticache Valkey and tried to connect using code which I got from Connect to your cache section. const {Redis} = require("ioredis"); const client = new Redis....
Dima jangveladze's user avatar
-1 votes
0 answers
14 views

Length of the verification code sent to a user's email when using Clerk's signUp.prepareEmailAddressVerification()

I want to be able to know the length of the code that will be sent to a user when they sign-up using my Custom UI that is infront of the Clerk's backend API. await signUp....
Brian Otieno's user avatar
0 votes
1 answer
42 views

TypeError: connectDB.query is not a function

import connectDB from '../db/index.js'; export const List = (req, res) => { const { Line_No } = req.params; if (!Line_No) { return res.status(400).json({ error: "Line_No is required&...
Thisal Thewmika's user avatar
-3 votes
0 answers
36 views

react codegen phasescriptexecution failed with a nonzero exit code. SOLVED [closed]

While trying to build a React Native project in Xcode, I kept getting the error: (react codegen phasescriptexecution failed with a nonzero exit code.). I tried all the suggested solutions I found ...
user29822656's user avatar
-1 votes
0 answers
39 views

A problem with React in Vercel Serverless Functions - SyntaxError: Cannot use import statement outside a module

UPD: Resolved. Yesterday I decided to create such a program that returns the text from my portfolio to the terminal when curl -L okinea.dev/cli is requested It looks like this: My program works ...
Okinea Dev's user avatar
-4 votes
0 answers
87 views

array?.map (if array is undefined) [closed]

const arr = [{ component_name: 'apple', component_part: [{ part_no: 1, part_name: 'xxx' }, { part_no: 2, part_name: 'yyy' } ] }, { ...
BdPk's user avatar
  • 33
-5 votes
1 answer
77 views

How to read .npz file in Javascript?

I'm trying to follow a tutorial on YT on how to write a basic neural network, but it's written in python. I'm trying to write everything using javascript and I haven't found a way to read the npz file ...
TableTopRug's user avatar
0 votes
1 answer
55 views

Why running laravel example demo node invalid nodejs error?

I try to install external laravel 11 example demo on my local ubuntu 22.04 and got next error : ExampleDemo$ npm install npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '...
Petro Gromovo's user avatar
-2 votes
2 answers
92 views

Why am I receiving TypeError: . . . not a function? [closed]

test1.js: const myFunc = () => { return "Hello World!"; }; module.exports = myFunc; test2.js const test2 = require('./test1.js'); console.log(test2.myFunc()); When I run: $ node ...
Crowdpleasr's user avatar
  • 4,028
1 vote
0 answers
40 views

"Error: packages field is not an array when using pnpm-workspace.yaml in a monorepo setup"

I'm working with a PNPM monorepo setup, and everything was working fine when I was using pnpm.yaml, but after switching to pnpm-workspace.yaml, I’m encountering the following error: ERROR  packages ...
Naga mani kanta manam's user avatar
1 vote
1 answer
38 views

How to set DNS server for a single axios get request?

I know I can set the DNS servers in node dns.setServers([ '4.4.4.4', '[2001:4860:4860::8888]', ]); But this is set globally and I'm developing a module (dependency) and I don't want to affect ...
João Pimentel Ferreira's user avatar
1 vote
1 answer
48 views

Can I access the results of an assertion or 'it block' and write it to my own report object, in Cypress?

For various reasons I have a custom report object for my Cypress tests. I alter what the report result is for each step (or it block) using conditonals, eg: it(`Checks for FAQ schemas`, () => { ...
MeltingDog's user avatar
  • 15.5k
-2 votes
0 answers
38 views

why am getting server is already running on port 4000 even when I restart my pc [closed]

I'm experiencing a strange issue with my Node.js backend. I've read similar questions, such as this one: why am getting server is already running on port 4000 even i have closed the server, but my ...
Shizuka's user avatar
0 votes
1 answer
25 views

I am trying to use Stripe with Node.js but I recieving this error: Refused to load the script 'https://js.stripe.com/v3' beacause of violation CSP

My node.js helmet configuration I add link with 'https://js.stripe.com/v3/' to loading scripts but it still gives me the same error appNode.use( helmet({ contentSecurityPolicy: { ...
Savva8030's user avatar
0 votes
0 answers
15 views

the websocket server does not connect to the node js server, which is located on render.com

I tried to connect to the websocket server with react, but the error WebSocketActions was displayed.tsx:20 WebSocket connection to failed. There are no problems writing code on the client side, I have ...
Максим Сологор's user avatar
0 votes
1 answer
79 views

a confusion about schema design for storing store's profits and how to retrieve them in mongoose [closed]

For displaying the (daily-weekly-monthly-annual) total profits for the store's dashboard. I want to store the data in an array for each store to not have multiple docs for the same store but different ...
Marya's user avatar
  • 170
0 votes
0 answers
35 views

How to integrate RabbitMQ in existing API calls

I have built an API endpoint to send mails based on Express. I currently call it using Axios when it is required making a post request directly to the route defined. So far so good. Now I am trying to ...
Lelio Faieta's user avatar
  • 6,684
0 votes
0 answers
27 views

Live Activity Not Updating via Push Notification (Success Response, but Fails to Decode Content State)

For my flutter project I have created live activity using plugin https://pub.dev/packages/live_activities I've created live activity and it is displaying fine. Now I’m trying to update my Live ...
Mohamed Al Ameen's user avatar
0 votes
0 answers
17 views

curl.exe command returning formatting error on windows powershell [duplicate]

I'm trying to run this command on powershell. Here I'm trying to overrule the Invoke-Webrequest alias used my microsoft by directly calling curl.exe. I don't think that seems to be the problem. Here ...
varda's user avatar
  • 59
0 votes
0 answers
23 views

Worker terminated due to reaching memory limit: JS heap out of memory" while running npm run gulp vscode-linux-x64 [closed]

Distributor ID: Ubuntu Description: Ubuntu 24.04.2 LTS Release: 24.04 Codename: noble When I was building the VSCode source code into a .deb package on Ubuntu , I executed the command: npm run ...
Lbits's user avatar
  • 13
-1 votes
1 answer
27 views

The best solution for installing npm modules offline

For describing the situation: we have a Linux server that has access to npm registry and can install all of the dependencies from it. But the network traffic filter doesn't allow access to some files (...
Андрей Дьячков's user avatar
0 votes
2 answers
40 views

Express middleware to intercept responses and compare results

I'm writing middleware in NodeJS with Express API. I want to grab the response body and compare it with the results of another microservice. This is part of a process of replacing the current API. I'm ...
Gabriel Baierle's user avatar
0 votes
0 answers
17 views

Node.js Unable to Execute Python Script on Server (Access Denied)

I am trying to execute a Python script from my Node.js project. The script reads payment image details and extracts name, transaction ID, amount, and date from the image. It works fine locally, but ...
Harshali Mankar's user avatar
-1 votes
0 answers
23 views

Debug a Node app running inside a Docker container with VS Code

I'm trying to understand how I can debug a Node app running within a Docker container using the Docker plugin from VS Code. To debug projects making use of more complex libraries/frameworks (Next.js ...
maja's user avatar
  • 796
-2 votes
0 answers
65 views

The value of count is changing . why is that happening? [closed]

For this code for a playwright test case, both the if condition and the else condition runs when the count value is 5. I am not updating the count value anywhere or re-fetching it. Does NodeJS does ...
Raider_Knight's user avatar