473,500
questions
0
votes
0
answers
7
views
Facing resizing issues of a nextjs component with react rnd
This is the code for my main page:
This is my Section Element:
// SectionElement.js
import { memo, useEffect } from "react";
import { Rnd } from "react-rnd";
const hexToRgba = (...
0
votes
0
answers
13
views
Uploading large files to Strapi and getting "Error: ENOSPC: no space left on device, write"
I'm running an installation of Strapi v5.1.1 on an Ubuntu v24.10 server with Nginx 1.26. The Strapi app uses an S3 bucket for media file storage, and a MySQL database, hosted on a DigitalOcean Droplet....
0
votes
0
answers
11
views
Failed to Fetch Error When Connecting Dockerized Frontend to Dockerized Backend
I'm working on a project where both the frontend and backend are containerized using Docker. Everything works fine when running the frontend and backend locally without Docker. However, I encounter an ...
0
votes
0
answers
10
views
How to backpressure Node.js TCP server?
Node.js seems to automatically accept() all connections on a listening socket.
This is an issue as it can lead to unbounded memory expansion.
Funnily enough, the listen() methods all take a backlog ...
0
votes
0
answers
6
views
How to Restrict API Access to Only Unity and Prevent Browser Access
I'm working on a Unity project that requires communication with a custom REST API built in Node.js with Express. My main concern is securing the API so that only my Unity game client can access it and ...
1
vote
0
answers
2
views
How to correctly stream videos from a S3 bucket using HLS format
I am totally confused about a video streaming app I have been making for fun.
I have:
Node JS server
Minio Buckets
Javascript Client
HLS ()H.264 and MP4 version of uploading and streaming.
Should I ...
0
votes
0
answers
17
views
How to detect manual refresh/access token removal from developer console by the user?
I would like to know if it is possible to track HTTP only cookies manual removal from developer console by the user. I know that when the user refreshes the page, changes will occur. Is it possible to ...
-3
votes
2
answers
62
views
(.0) float in Javascript
I am trying to do write a code for a function that displays a boolean after checking if the value is an integer or not. see my definition of an integer in my ideal outputs below when i call the ...
0
votes
0
answers
11
views
adding Fields to an Embed with the message ID of an Embed
I want to add Fields (using addFields) to an embed but I only have the message ID of the embed not the variable. Can someone help me?
i tried this:
messageID.addFields({ name: 'the top part of te ...
1
vote
0
answers
22
views
Tailwind CSS VSCode Warning - Unknown at rule @tailwind error
I'm trying to set up Tailwind CSS with Vite, but I'm getting "Unknown at rule @tailwind" errors in my index.css file. I've followed the official documentation and other solutions but can't ...
0
votes
0
answers
11
views
Node.JS And PostgresDB : I can not use pool
I want to make somefunction (as SelectDB ) that send sql statement then return as quered data
but when call SelectDB in secound times That shown
error Error: Client has already been connected. You ...
0
votes
0
answers
14
views
Separating laravel and react
I have a project repository containing both laravel and react. Now, I want to put react frontend in a separate directory to avoid complexities but I am going through different errors. Because, This is ...
1
vote
0
answers
18
views
tsup --watch Rebuilding/Restarting When server.listen is Used in Fastify App on macOS 15.0.1
I'm developing a Fastify application on macOS 15.0.1, and I'm having issues with rebuilding and restarting the app whenever I include server.listen. I’ve tried tsup for watching and rebuilding, but as ...
-4
votes
0
answers
32
views
Properties for automatic formal verification of the JavaScript code [closed]
I need a piece of advice from JavaScript guru.
I am developing a formal verification tool for a JavaScript developers (actually for the toy language which is a simplified version of JavaScript, no ...
1
vote
1
answer
11
views
TypeError: ctx.toDataURL is not a function by drawing a canvas on the node.js server side
I am creating an capacha based on canvas on the node.js server with typescript.
import { createCanvas, loadImage, registerFont } from 'canvas';
const canvas = createCanvas(100, 40);
const ctx = ...
0
votes
0
answers
27
views
Event loop blocking in NodeJS
stack overflow community.
I have an app that interacts with Docker using dockerode library in NodeJS. I'm generating services using it and everytime new service is being started, it builds unique ...
-4
votes
0
answers
17
views
Is there a Node JS frontend framework which allows direct access to OS?
Is there a native frontend framework for node JS which allows direct access to the OS like most other language frontends do?
Something like Angular but which runs like Qt or Java Swing and doesn't ...
1
vote
1
answer
20
views
Paragraph textContent disappear after flashing its value momentarily
I am learning how to handle files with multer, to do this i wrote a simple code that takes the uploaded file, parse it to an api that retrieves the the data from the text file and returns the said ...
0
votes
0
answers
14
views
compilation of packages using @vercel/ncc
would like to know if anyone has used @vercel/ncc for compiling packages in a project or framework?
I have recently used this library in our project for compiling packages into single compiled file ...
0
votes
0
answers
9
views
getstream.io with Flutter: How to Add Additional Participants to an Existing Call and Send Push Notifications?
I’m using the getStream.io video call API in Flutter and following the documentation to manage participants. The code below allows me to create or get an existing call using a call ID:
// Create or ...
-1
votes
1
answer
19
views
yarn not found in docker container after successful build
I navigate to root and run docker build frontend which finds a Dockerfile in the /frontend directory. Then I enter the docker container using docker exec frontend-1 sh and once in the container npm, ...
0
votes
1
answer
35
views
Flutter FCM notification tap does not call `getInitialMessage()`
I've been working on a Flutter app where it needs to support being able to tap a notification and it takes you somewhere in the app. However, when the notification is tapped, it doesn't invoke any of ...
1
vote
1
answer
11
views
Mongoose skip and limit for objects inside an array
Before mongoose I worked with sequelize. Decided to try mongoose and figured out that in my code ignored skip and limit options.
Here is my model:
const User = new Schema({
login: { type: String, ...
-1
votes
1
answer
16
views
Dotenv cannot use nodejs typescript
I had a problem with the env configuration and this my code.
I have consulted some solutions, but still can not solve the problem. Can you help me?
{
...
"type": "module",
&...
0
votes
0
answers
14
views
Express session expires after a post request from external URLs
I am trying to implement a bank payment system using the Express framework.
According to the bank's docs, It starts by redirecting the user to a specific URL like this:
res.redirect("https://pec....
0
votes
0
answers
13
views
read a value from config file, inside a jade file
I have a home.jade file in a node.js project, and a lot of other .jade files that extend it.
In home.jade, I want to read a value from a config file. I don't wand to need to update all render calls in ...
0
votes
1
answer
13
views
session data not stored for multiple users in table
I am using passport for authentication and connect-pg-simple to store sessions in a PostgreSQL database. However, I'm running into an issue where only one session cookie seems to be stored in the ...
0
votes
0
answers
37
views
Why does bun execute this simple code 2 times as long as node.js?
I saw how fast bun was and generated some random code to compare node.js and bun. I expected bun would execute much faster than node.js but bun takes two times as long as node.js.
[Code]
// 2. Matrix ...
1
vote
0
answers
15
views
Multiple executables using electron-builder
I have written an electron app that shows notifications to my users. I have packaged this app using electron-builder/electron-forge. I also have written code to for the app to have a screensaver ...
0
votes
0
answers
15
views
How can I set up statementTimeout in Slonik for an individual statement?
I have a query in Slonik that looks like this:
connection.query(sql.unsafe`
INSERT INTO users (id, foo)
SELECT *
FROM ${sql.unnest(rows, ['uuid', 'int4'])}
`);
How can one configure the ...
0
votes
0
answers
11
views
Some Cookies are Missing in Production Environment which comes with SSO Integration
I'm experiencing an issue which is apart from the session cookie, other cookies are missing with the request. Especially, with the stauthId cookie. My setup includes a React frontend, a Node.js ...
0
votes
0
answers
9
views
"Failed to get block: <hash>" error from electrum-client
I've installed bitcoin node and electrs server on VPS. I write nodejs script to listen new transaction from specific addrs and I get this error when I use Electrum protocol method blockchain....
0
votes
0
answers
25
views
Video stream cancelling but video coming through
I'm making a streaming server and app for fun and practice.
Ionic React App
Node JS Express Server HTTP/2
Videos compressed with ffmpeg
This is also my first time using a minIO Bucket, so I am ...
-2
votes
0
answers
20
views
What is the correct config file for nginx server backend host [closed]
My frontend has successfully hosted on VPS using Nginx, but I'm facing issues uploading the backend in my MERN application. I think there is something missing in my config, but I haven't been able to ...
1
vote
1
answer
26
views
Error while building node typescript app specifically in routes file
I have created a routes file which has following code,
import express, { NextFunction, Request, Response } from "express";
const router = express.Router();
router.post(
"/product&...
0
votes
0
answers
44
views
Sequelize sync SQL Server database
I have a question regarding the sync method in Sequelize with SQL Server. To summarize the problem: I have a model with a unique column, and when the table doesn't exist or the database is empty, the ...
0
votes
0
answers
20
views
what is the Correct way to dockerize reactjs,nodejs,NGINX for a web application in one aws container [closed]
I have to deploy web application having React js[frontend],nodejs[basically used for CRUD DB operation] in aws lightsail container.React will make api calls to nodejs.
I want to include NGINX so that ...
0
votes
1
answer
18
views
Cannot convert IAM secret access key to SMTP credentials
I'm trying to convert secret access key to SMTP credentials. I followed instructions at https://docs.aws.amazon.com/ses/latest/dg/smtp-credentials.html and grabbed implementation from https://gist....
-1
votes
0
answers
18
views
Deploy non public staging application with Node.js/express
We are developing a Node.js / Express web application. We would like to deploy a confidential preprod/staging version of the app before deploying the new public version.
My team makes some tests on ...
1
vote
1
answer
18
views
Data type and metric type mismatch error when searching embeddings
I'm encountering a data type mismatch error while trying to search for similar vectors in Milvus using OpenAI embeddings. The error occurs despite following the schema setup and indexing guidelines.
I ...
0
votes
1
answer
44
views
Parallel processing of the collection without intersecting
There is a single mongodb instance with a very big collection, for example events_collection
There are N=4 instances of some microservice (nodejs)
Each instance should read (batched) documents from ...
0
votes
0
answers
22
views
Need help in installation of opencv4nodejs
I am trying to install opencv4nodejs but I keep getting a error :
Node:internal/modules/cjs/loader:1185 return process.dlopen(module, path.toNamespacedPath(filename));
using node version 16.4.0 tried ...
-1
votes
0
answers
22
views
OpenAI API TypeError: Configuration or OpenAIApi is not a constructor
// I've tried rewriting the code with answers from other stack users and ChatGPT to no avail All packages are up to date oct/24/2024
I expect to programatically interact with OpenAI from my computer ...
1
vote
1
answer
40
views
Svelte 5 snippets parameter 'x' implicitly has an 'any' type
After upgrading to Svelte 5, I tried the new {#snippet ...}. I am getting this type errors, but in the svelte docs it is like they do not exist for them.
{#snippet NavLink(href, text)}
<a class=...
-2
votes
0
answers
30
views
Node.js server running on Terminal but not loading on browser
I am trying to achieve a proxy server using node.js where my proxy server is running on the terminal as
Proxy server running on http://0.0.0.0:3000
but over the browser, it's not working. I am using ...
0
votes
2
answers
65
views
Nothing happens when trying to create a MongoDB database through a Node.js file
I am following W3Schools.com's 'Node.js MongoDB' tutorial. My action.js file contains the following code:
var mongo = require('mongodb').MongoClient;
var url = "mongodb://localhost:27017/mydb&...
0
votes
0
answers
20
views
How do I do SSE load testing with Node Js?
I have such a code and I want to do a load test on it to see how many open connections it can handle at the same time. How can I do this?
app.get('/stream', (req, res) => {
res.setHeader('...
0
votes
1
answer
55
views
API call in js to return image
I am working on js web app and it is my first time working on any js app. After calling an API web app is not showing any image on overlay screen but the API is returning an image.
Html code
<input ...
2
votes
0
answers
25
views
Fastest way to get Name, Port and IP of devices in local network using Node.js
I am currently working on a React Native app in which I need to search for devices on my local network to then establish a TCP connection with the identified devices using the node-net library. For ...
0
votes
0
answers
27
views
CosmosDB for MongoDB updateOne upsert race condition
I'm working on a Nodejs App which stores data in the Azure "CosmosDB for MongoDB API".
Szenario: The app send 2 updateOne at the same time to the DB (simplified):
db.collection("...