473,614 questions
0
votes
0
answers
17
views
Axios use wrong route
I wanna deploy my project on VPS, but I've stuck with a problem. Axios tries to use 'http://localhost:3000/main', when in code I indicated another route. I tried to change baseURL, but it didn't help, ...
0
votes
0
answers
4
views
Node.js Electron - read https
I am writing a program for a PC on Windows 10 OS using node.js and Electron.
I need to communicate with a site on SSL, which works on a certificate of the new Russian certification center from the ...
0
votes
0
answers
4
views
Module not found: Package path ./webgpu is not exported from package I am getting this error when i try to import imgly background removal
Everytime i import the imgly background remval i get this error like
Module not found: Package path ./webgpu is not exported from package C:\Users\dhruv\node_modules\onnxruntime-web (see exports field ...
-1
votes
1
answer
13
views
How to use correct body request for relation in strapi [ValidationError]?
Problem Description
You have a batches collection type in Strapi with the following attributes:
name: a string.
state: an enumeration.
orders: a one-to-many relation.
owner: a one-to-one relation ...
0
votes
0
answers
8
views
How to access the data from a POST in Nextjs
I am trying to access my body from the request but for some reason these are both undeinfed.
Here is the payload:
{ "timeEntries":
[],
"violations":[]
}
export const POST = ...
-1
votes
0
answers
10
views
Node works in Powershell but not Ubuntu
When I run node -v in PowerShell I get v22.11.0 but when I run the same command in Ubuntu I get Command 'node' not found.
npm -v works for both.
Ubuntu was installed as part of the WSL installation. ...
0
votes
0
answers
10
views
Next.js 14 failing to build with "Error occurred prerendering page", but builds fine on Vercel
I'm relatively new to Next.js and I'm trying to build my project but I'm encountering an error regarding pre-rendering the pages. I'm using a Provider that pulls configuration settings from the ...
0
votes
0
answers
19
views
dynamic import of a module
I have a ES6-modules project, where different databases can be used dependig on the context.
For that I created a module (database-provider.js) that handles this import dynamically.
standalone this ...
1
vote
2
answers
69
views
Error: "[plugin angular-browser-node-built-in] The package 'crypto' wasn't found on the file system" after updating to Angular 19
I recently updated my Angular project to version 19, and now I’m encountering the following error when building or serving the application:
[ERROR] The package "crypto" wasn't found on the ...
-2
votes
0
answers
12
views
aggregating files among microservices
I would like to make my own gateway written in typescript,express to receive from data from client and route all data to the internal microservice.
note that the form includes media files (audio, ...
0
votes
0
answers
6
views
AWS no longer support for auto launch configurations, so how to use the template while creating eb application on Node.js
how to resolve this error, "Creating Auto Scaling launch configuration failed Reason: Resource handler returned message: "The Launch Configuration creation operation is not available in your ...
0
votes
0
answers
5
views
Error in pdf-to-printer package in some system
I am using pdf-to-printer package in nodejs for printing directly to selected printer. It's working in most of the systems but in some systems it is showing following error:
TypeError: Cannot read ...
-1
votes
0
answers
14
views
I am trying to get the value of a JWT token saved as a cookie in my browser, but I am getting undefined in the log statement
Here is the function I am setting the cookies in
login: async (req, res) => {
try {
res.clearCookie('authtoken')
const { email, password } = req.body;
...
0
votes
1
answer
10
views
How to get client ip in nestjs grpc context
Imagine we have code like this in the NestJS. No matter if it's Guard or Interceptor.
In general the place that you have access to ExecutionContext.
import { CanActivate } from "@nestjs/common&...
-3
votes
0
answers
25
views
Scraping and downloading images from a public folder (Dropbox, Drive etc) [closed]
I am building a feature in my app where users can paste a public folder link (from services like Dropbox, OneDrive, or Google Drive), view the images in the folder, and select which ones to download ...
0
votes
0
answers
10
views
Sequelize ORM: Dynamically set database schema for sequelizeInstance (or repositories) at runtime?
For our SaaS API we use schema-based multitenancy, which means every customer (~tenant) has its own separate schema within the same (MySQL) database, without interfering with other customers. Each ...
0
votes
0
answers
11
views
Problem uploading image from express to s3
I want to upload an image to s3 but cant, eventhough a similar api like that can work normally.
exports.createPost = async (req, res) => {
const { user_id, title, caption } = req.body;// ...
-1
votes
0
answers
26
views
How do i resolve a "Cannot read properties of undefined (reading 'requestHandler')"
So I am implementing Sentry on my Node project, but when I run it I am getting this error.
TypeError: Cannot read properties of undefined (reading 'requestHandler')
at file:///C:/Users/HP/Documents/...
-1
votes
0
answers
9
views
How to Deploy a MonoRepo with a NextJS and a Node Js Sever to any free cloud hosting platform?
The Structure of my Monorepo is attached in the image. This is a Turbo mono repo , where the web has a NextJS frontend and the server directory has a Node Js Server.enter image description hereenter ...
-4
votes
0
answers
35
views
Is there any ways to edit or update data in a Excel file? [closed]
I want to get data in an Excel file and show the data on the web. If I want to update or edit the data on the web and sync that data in that Excel file again, can I do it or not, if not, please ...
0
votes
0
answers
13
views
Restricting Node.js only to a subdirectory on a Plesk server
I have successfully set up Node.js on my Plesk server following these instructions. However, when activated on the domain, it messes up my existing website, displaying a default node.js page. I would ...
-1
votes
0
answers
27
views
The request is blocked. 20241211T051632Z-16ccd9d5bb9sbx2khC1MAAxw540000000z1000000000guyw [closed]
Problem Overview: When I attempt to send a POST request using Postman to an API, I get the following error message: The request is blocked. 20241211T051632Z-...
0
votes
0
answers
10
views
Strapi export issues
I'm using this Strapi setup
strapi: v5.5.0
node: >=18.0.0 <=22.x.x
npm: >=6.0.0 database:
postgres
I’m attempting to do an export of my local Strapi instance. However, I only want to export ...
0
votes
0
answers
7
views
tiktok apii error 'unaudited_client_can_only_post_to_private_accounts'
I am trying to publish a video on tiktok by tiktok api but when I try I find this error
{
error: {
code: 'unaudited_client_can_only_post_to_private_accounts',
message: 'Please review our ...
-1
votes
3
answers
19
views
express-session secure: true for production
app.use(session({
secret: SESSION_SECRET || 'default-secret',
resave: false,
saveUninitialized: true,
cookie: {
httpOnly: true,
secure: true //for production,
maxAge: 10 ...
-4
votes
0
answers
28
views
Manage SSL connections correctly for a NodeJS server running behind a no-ip dyndns domain [closed]
I've been setting up and running a NodeJS web application (ByteStash) on a Raspberry Pi 4 system without any issues.
It listens on port 5000 but it currently doesn't provide an HTTPS server. So using ...
0
votes
1
answer
20
views
OAuth2 Validating tokens on backend when using multiple providers
I'm quite new to using OAuth2 and was wondering how do you validate access tokens that multiple providers?
I have a front end server that is allowing authentication from multiple provides (e.g, Google,...
0
votes
1
answer
37
views
Is it possible to connect to a SMTP server through proxy?
I'm attempting to connect to SMTP servers through proxies to validate emails.
I've looked into http-proxy-agent, but as I understand, proxies cannot be used with a TCP connection?
My current ...
0
votes
1
answer
19
views
Puppeteer Getting Timeout Upon 'waitForSelector'
I'm using node.js and puppeteer to get some data. However, Puppeteer keeps getting timeout. My code is as followings:
const puppeteer = require("puppeteer");
(async () => {
const ...
0
votes
1
answer
44
views
Why is my digitally signed PDF invalid in Adobe Acrobat despite correct configuration?
I’m working on a project where I need to digitally sign a PDF using Node.js. My goal is to sign the PDF with a .pfx certificate and include a timestamp (TSA). However, despite following the expected ...
0
votes
0
answers
12
views
Can I use debugger in VSCode to execute Playwright code?
Is it possible to execute playwright code in debug console while you stop the console on breakpoint? Everytime I try to do so, I just get pending promise and nothing happens in the browser. In python, ...
0
votes
0
answers
17
views
error: Environment variable not found: DATABASE_URL (EDIT:::: A silly mistake)
So i was initializing the backend for my project using ,
Hono, Prisma , postgres and cloudfare workers as serverless backend.
I am getting this error,
Ps : this is my index ts file
import { Hono } ...
0
votes
1
answer
18
views
Getting Error When Trying to Update a Model Using Objection
I am getting this error while trying to update a record in my model using objection.js.
The error I am getting is
Error: An error occurred while executing $setJson method. $setJson method was given an ...
0
votes
2
answers
34
views
TypeError: Cannot read properties of undefined (reading 'bind') in RSC action
It's a Next.js v15 app with React v19 where I want to get benefits from the action property in a form. This ensures the form could be submitted even when the JavaScript is disabled on the browser.
The ...
0
votes
2
answers
17
views
Receive Postbacks through NSAdvertisingAttributionReportEndpoint with Node
I try to get the body of a postback with Node in Firebase Functions:
const app = require("express")();
app.post("/.well-known/skadnetwork/report-attribution/", function(req, res) {...
0
votes
0
answers
16
views
NestJs HMR not working with "type": "module"
I followed NestJs HMR using webpack using following url.
https://docs.nestjs.com/recipes/hot-reload
It works fine when we use "type": "commonjs" in package.json.
Unfortunately I ...
0
votes
0
answers
22
views
Sequelize Adding Association Causes Always Alter
I am trying to add multiple associations to my project. Although, other tables do not giving this error or misusage effect these associations makes the project always alter.
db.option.hasMany(db....
-3
votes
0
answers
21
views
Concerns when bundling node_modules in node backend app [closed]
I'm currently working on an initiative to optimize our Node.js Docker images and wanted to share some findings and gather advice.
In our multi-stage Docker build process, we currently copy the entire ...
0
votes
0
answers
24
views
Runnig React Native app results in missing module "perf_hooks"
I have problems running my React Native app. I had a working version, that I could build and run on iOS and Android. After changing some code in some components, I was unable to run the app on both ...
0
votes
0
answers
13
views
Dokku nextjs suddenly failing due to ReferenceError: window is not defined
I've been successfully deploying a nextjs application via Dokku for past 6 months. Suddenly I'm not able to deploy anymore due to a ReferenceError: window is not defined, with minimal changes. I've ...
-1
votes
1
answer
31
views
How to generate a pdf using the print view using js [closed]
Okay so i have a webpage that is different when i click print. I can save the page to pdf using the print function. This looks good.
The problem is, i need to do this using js. I have a button (...
1
vote
1
answer
23
views
Images Display on Local but Not in Production with React + Vite (Absolute Path)
I am using React, TypeScript, and Vite with the following alias configuration:
resolve: {
alias: {
"~assets": resolve(__dirname, "./src/assets"),
"~images": ...
0
votes
0
answers
13
views
Retrieving Locations at a Specific Address
I am working with Node.js library @googlemaps/places and would like to retrieve all locations (e.g., businesses, restaurants, offices) at a specific address.
However, when I send an address to the API,...
0
votes
0
answers
24
views
GET http://localhost:5000/api/v1/auth/authCheck 401 (Unauthorized)
I’m trying to make a GET request to http://localhost:5000/api/v1/auth/authCheck from my React frontend, but I keep getting a 401 Unauthorized error.
The backend is written in Node.js with Express, and ...
0
votes
0
answers
8
views
Deploy Nodejs Application over AWS Elastic Beanstalk but can not run backend api although deployement is successfully
enter image description here
app.j
const express = require("express");
const dotenv = require("dotenv");
const http = require("http");
const cors = require("cors&...
1
vote
1
answer
40
views
Fetch request is still cached by default in Next.js 15
According to the Next.js blog and documentation fetch requests are no longer cached by default since Next.js 15:
https://nextjs.org/blog/next-15
https://nextjs.org/docs/app/api-reference/functions/...
0
votes
0
answers
11
views
How to solve this WebPack error with the module node:util?
i see this error on WebPack and i try to use the NodePolyfillPlugin(), but not make anything, see the error:
utility.js:296 Uncaught Error: Module build failed: UnhandledSchemeError: Reading from &...
0
votes
0
answers
18
views
Error in nodejs and npm while writing files and maybe even more
This error is halting my progress since last week... I've tried AI, Google search, Github, asking experienced people, nothing works.
So I'm just a starter in react and nodejs. I was following Dr. ...
0
votes
0
answers
19
views
How to determine for each competition the associated sport using Betfair API
I want to save the sports and competitions in my database. In the competitions table, I have the sport_id foreign key.
I know that in the 'SportsAPING/v1.0/listCompetitions' method I can send all ...
0
votes
0
answers
16
views
I try to start react the app said that....npm error code ENOENT npm error syscall spawn .....what shall i do?
npm error code ENOENT
npm error syscall spawn C:\Program Files\Java\jdk-10\bin\dtplugin\deployJava1.dll
npm error path C:\Users\MKT\OneDrive\Desktop\reactJs
npm error errno -4058
npm error enoent ...