Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
0 answers
27 views

Can't find module @prisma/client

When I use Prisma Client I have a problem. After the import i have a mistake: no module found "@prisma/client" enter image description hereenter image description here I tried to install ...
No Date's user avatar
  • 11
0 votes
0 answers
19 views

Would it make sense performance wise to use workerpool for websocket client to parse incomming messages?

Iam trying to understand how to make node ws client more performant and I have come across worker threads and workerpool. The use case is to parse incomming messages (done in the worker) and pass the ...
Lmfao's user avatar
  • 5
1 vote
0 answers
29 views

Android socket.io, node.js as server, android as client

here is a nodejs server code snippet that works fine : const express = require("express") const { createServer } = require("node:http") const { Server } = require("socket.io&...
Gilles's user avatar
  • 29
0 votes
0 answers
22 views

Hosting client react app with npm start equivalent to server side rendering?

I'm figuring out how to host a React, Node and Express app. If I take the react client that I've got and run npm start on AWS Lightsail, is that considered server side rendering, and would it be a ...
JobHunter69's user avatar
  • 2,220
0 votes
1 answer
788 views

start() is Deprecated in GRPC services

I'm using node version upper 20 and I faced deprecation warning in the GRPC file in this line of code exactly below the problem inlines with server.start(): function main() { var server = new grpc....
Hiwa Sedradin's user avatar
-1 votes
1 answer
55 views

Issue with Preventing Form Submission in JavaScript

Title: Issue Preventing Form Submission when Uploading Files in JavaScript I'm facing an issue with preventing form submission in my JavaScript code. I have a form that allows users to input messages ...
Akbar husain's user avatar
0 votes
0 answers
251 views

Angular 17.3 new project error, in node.js 18.16

I install node-v18.16.1, then update angular v17.3, I created new project- ng new, then ng serve, the project is empty, base base project I get an error: the error: [error] Error: spawn UNKNOWN at ...
Rivki's user avatar
  • 107
-3 votes
1 answer
135 views

How to make a 'file://' file connect to the Node.js server with Socket.IO

The problem is that the 'file://' protocol cannot send XMLHttpRequests (I think). I am using Socket.IO and when I try to do var socket = io("my CodeSandbox server link"); it doesn't connect. ...
Truder's user avatar
  • 60
-1 votes
1 answer
188 views

Sending axios request to Whisper endpoint with file input in client-side JS

I have a working NodeJS code that makes a request to /audio/transcriptions endpoint on a localhosted OpenAI API. The file is given as fs.createReadStream("speech.m4a"). The node application ...
nagytoth1's user avatar
0 votes
0 answers
17 views

How to get to send the current network's server using nodejs

I'm currently creating a client application with nodejs. But everytime i test it outside the server computer then I have to use its internel IP address to send request to server. I want something that ...
Mohammad C.'s user avatar
0 votes
2 answers
57 views

How to answer two requests in socket io and without delay

When ‏I receive a request from the client and my response is a large number of records, and at the same time another request comes to the server, the second request is answered with a little delay. In ...
Parisa Seif's user avatar
0 votes
0 answers
35 views

Issue with "npm run server" and "npm run client" functioning at the same time. (No Error message)

I've been at this for a few days and decided it might be more productive to ask smarter people. In summary, I am using PuTTy and I can't get "npm run server" and "npm run client" ...
MrHavok's user avatar
0 votes
1 answer
23 views

How can I make a specific character the center point on a header?

For example, I have team1 0-0 team2 Lets say team1 = "David" and team2 = "Bob" then the center of the page would be David 0-0 Bob ^ How do I make it so that the 0-0 is the ...
Yoshixed's user avatar
0 votes
2 answers
65 views

Socket.io communication between server and client - not receveing messages from client

I have an application server and client with socket.io, and I'm trying to have a communication between them. Unfortunetely it's not working as expected. In general the process is like. 1 - Initiate ...
Bruno Pimenta's user avatar
1 vote
1 answer
67 views

NodeJS Send data with ejs to <script>

I am trying to send data from my nodejs server with ejs to my html. But the problem is I cant read the variable inside my script. Nodejs server: exports.getIndex = (req, res, next) => { var alert ...
Dalibor SpOOny Barabas's user avatar
1 vote
1 answer
100 views

Query meta engine by list fo documents Ids in NodeJs using @elastic/enterprise-search

In my NodeJs API, I haven't been able to query a meta engine that is composed by multiple single engines. I need to get documents filtered by a list of Ids. I'm using @elastic/enterprise-search ...
letie's user avatar
  • 874
0 votes
0 answers
858 views

Seperate between Admin and client in the same React web app

I'm making a web application using MERN Stack, it has an admin dashboard to insert, delete or update the data that the client is going to need in his side of the app, and I just said there's the ...
3idoudi's user avatar
  • 25
0 votes
1 answer
2k views

Connection refused using Node.js, caused by an "index.js" file I didn't even know existed

I want to make a very simple client-server web application. I followed a tutorial step by step to make this "Hello World" program: Server (server.js): const io = require('socket.io')(); io....
RobsonDaSheep's user avatar
1 vote
2 answers
361 views

How do I connect to multiple keyspaces using one Cassandra Client object?

I was using such a following code to connect to only 1 keyspace: This is `/config/db.ts: import cassandra from "cassandra-driver"; class Cpool { static _pool : cassandra.Client; static ...
best_of_man's user avatar
0 votes
1 answer
352 views

net::ERR_CONNECTION_CLOSED when trying to acccess server

I have a simple server and client for a simple (non security focused) login screen, But when i try to send a request from the client i get a error saying net::ERR_CONNECTION_CLOSED, how can i fix it? ...
WinwinTheDumbguy's user avatar
0 votes
2 answers
139 views

Error while doing module.exports = client;

I have a commands folder containing files that contains slash commands, and i have to import the client instance from index.js to another file, but when doing : module.exports = client; it execute the ...
ENDERastronaute's user avatar
0 votes
1 answer
41 views

Using multer and react Filebase64

When uploading files, is it okay to use both Multer and FileBase64? I am doing so, because feels more secure but also think that maybe it's nonsense.
Lori11's user avatar
  • 13
1 vote
0 answers
313 views

how to upload client files directly to minio?

is there any way to uplaod files directly from client to minio s3? im working nodejs with express and want to have something to do this without proxing hosting to upload files like using multer. in ...
mahdi's user avatar
  • 493
0 votes
2 answers
605 views

package.json configuration to run server and Client

This is my configuration for the global package.json "server": "npm run watch --prefix server", "client": "npm run start --prefix client", "deploy&...
Santiago's user avatar
0 votes
1 answer
521 views

Server is not responding when client is trying to connect to it

I'm new to Socket.io. I'm trying to establish a connection to the server. But the connection event is not responding. Is there anything I'm doing wrong that I am unable to figure out? Here is my code ...
Areej Fatimah's user avatar
0 votes
1 answer
116 views

nodeJS how to send a message with connection request

I am using websockets to talk with server but I want to prevent client from connecting if a requirement is not met. My code is very simple let socket = new WebSocket('wss://server.com/server/'); ...
user2980746's user avatar
0 votes
0 answers
28 views

Need Debug React Client to NodeJS Server to MySQL DB 404 Error After CORS Config

I've created a front end client in React with a form that is using Axios to submit data to the backend nodejs server api but after setting up CORS I get a 404 error from Axios. The MySQL database ...
00g's user avatar
  • 11
0 votes
1 answer
156 views

How to send websocket message to client from the serverside

Hello I have two backends laravel and Nodejs and There will be one frontend. So if the front end requests something on laravel and laravel requests to node and Node has to send a message to the client ...
Bhargav Kanodiya's user avatar
1 vote
1 answer
519 views

Error: tokens can only be created server-side using the API Secret

Its is showing an error SiteError: This method can only be used server-side using your API Secret, use client = stream.connect(key, secret) Failed to load resources : the server responded with a ...
Abin 's user avatar
  • 23
-1 votes
2 answers
286 views

Discord.js client doesn't work and doesn't give any errors

So my discord bot that I host on repl.it for free (so that might be the problem) works fine most of the time but sometimes, it will just randomly stop working. Even when I restart it, the client.on(&...
farima4's user avatar
  • 23
1 vote
0 answers
673 views

Nodejs server stop working after some time

I'm a newbie to Nodejs so I hope that I can describe my problem well. I have a local Nodejs express app server that runs on a windows machine by 'node app.js' command and listening to clients ...
Raz Vaknin's user avatar
0 votes
2 answers
1k views

How to read the user input on the client-side, modify it with JS on the client-side, and then POST it to the sever-side (Node.js)?

Problem: I want to read a user input on the client-side, do some processing on the variable using JavaScript, still on the client-side, then POST the modified variable to the server-side (Node.js). ...
EricandWeb's user avatar
0 votes
1 answer
46 views

Nodejs server randomly requires user input on console line to run

So I'm working on a web server to host a website to talk to a teradata database, but every now and then when I send a request from the website back to the server, it will do nothing until I focus the ...
Merthew's user avatar
  • 11
0 votes
1 answer
472 views

Why message.guild.me.permissions.has("X") returning me true

whatever i am writing inside message.guild.me.permissions.has it returns me true Why ? for example : message.guild.me.permissions.has("X") // true ?? i am using Discord.js v13
user avatar
-1 votes
1 answer
521 views

Is there a way for nodejs' "net" module to determine if a data packet is the last packet in a sequence?

I'm getting a large amount of json data from a TCP Server. I can successfully connect to the server with nodejs' "net" module and send the packet to request the data from it. The server ...
MothRemovalInProgress's user avatar
1 vote
0 answers
436 views

Socket.io nodejs client with sticky session is not working

I am working with socket.io and I am struggling with sticky session. I have used cookie to achieve sticky session. Basically server return some cookie that should be send in next requests to get me to ...
PianistaMichal's user avatar
-1 votes
1 answer
756 views

is it a bad idea to establish a connection to a database from the client?

for example, if I wanted to establish a connection between my react app and snowflake and I wanted to do it all client side, would there be any issues? This is a web app that won't be facing the ...
leed38's user avatar
  • 316
0 votes
1 answer
898 views

Broadcast a basic event to all clients

How would I go about broadcasting alert("Hello World!"); on all clients currently avaible? I have gone through these links: https://socket.io/get-started/chat https://socket.io/docs/v3/...
fox tech.'s user avatar
0 votes
1 answer
178 views

Heroku deployment: How can I point my app to app/client/build?

How can I point my app to app/client/build? I get the error: "Error: ENOENT: no such file or directory, stat '/app/server/build/index.html'" when deploying my app to Heroku. I added my ...
codereyes's user avatar
1 vote
0 answers
33 views

Socket.io client disconnection issues on NodeJS

I have an issue with Socket.io: everytime I close and reopen or refresh the page on the JS Client, for some reason the "old socket.io sockets" are not disconnected/destroyed, I still see ...
Fabryz's user avatar
  • 31
1 vote
1 answer
151 views

Bootstrap button toggle not working like docs

I copied below directly from the v5.1 documentation and just updated my href. The link works in a dropdown I have but I want to leverage the below buttons instead. <a href="/events/?future=...
econobro's user avatar
  • 369
0 votes
1 answer
79 views

Error in uploading audio from client to server using p5

We are a group of five students from Politecnico di Milano in italy! We are following a creative coding course and in order to present our final project, we need to solve some little problems: we have ...
Bottaaaaaa's user avatar
1 vote
1 answer
123 views

Couchbase node.js client on AWS Linux fails to install

I am trying to run a simple Couchbase node.js client. On AWS Linux box I run sudo yum install gcc-c++ Then run npm install couchbase but there are compilation errors such as npm ERR! ...
Bill007's user avatar
  • 29
1 vote
0 answers
472 views

How to authenticate end-users using Firebase Authentication from a CLI application

Summary A CLI application, let's call it friendly_chat, needs Firebase Authentication for end-users. The CLI can be written in any language for which there is a Firebase Authentication SDK, or it can ...
Craftonix - AA's user avatar
2 votes
1 answer
567 views

Will client.login('TOKEN') twice lead to problems?

I was getting an error by fetching a channel from my client that said my client was not logged in at that point, so I used client.login() right before requesting the channel and also in my main.js so ...
Whoozy's user avatar
  • 184
1 vote
0 answers
57 views

Connect a client to a given server using Nodejs and Socketio

I tried to write a client for a given server domain name as http://demo-chat-server.on.ag/. However, I can not connect my client to this server. My code is like this: const io = require("socket....
Hande Yildirim's user avatar
-2 votes
1 answer
91 views

Uncaught TypeError [CLIENT_MISSING_INTENTS]: Valid intents must be provided for the Client [duplicate]

hey i've tried almost every tutorial in here but it still shows me uncaught typerror.. it keeps doing it even after i've seen and did what the others too had (i mean the same problem) but it just won'...
Rayden's user avatar
  • 11
1 vote
0 answers
998 views

How to connect to a different device on the same network with JavaScript?

Just wondering if there is something between localhost and web hosting. What my question is is that is it possible to easily get client-side JavaScript to communicate with a Node server on the same ...
Hera Sutton's user avatar
0 votes
1 answer
354 views

How to make a python script run on client side in node js?

I am working on a node js application that will serve as an interface to some network shared documents. One functionality is that a client should be able to click a button on the website and be ...
Filip Daniel's user avatar
-1 votes
1 answer
34 views

how to use socket.io bitween 2 servers?

I want to develop an app via socket.io which will have 2 parts. One client, and another server. However, the thing is that the client app will be running on another server, and the server app will be ...
Akash Kakkar's user avatar

1
2 3 4 5
7