Skip to main content

All Questions

Tagged with
-1 votes
0 answers
18 views

NodeJS/discord.js issue: TypeError: Cannot read properties of undefined (reading 'id')

I am working on a bot and am building an Audit Logging system based on a tutorial from The North Solution on YouTube. I keep getting this error when an audit log event is generated. I've spent hours ...
Strafe Stopper's user avatar
0 votes
1 answer
15 views

Syntax on accessing authorization header of an API request in node

const authHeader = req.headers["authorization"]; Apologies if this question may seem basic, but I am curious why we use ["authorization"] and not just .authorization I did some ...
Taran's user avatar
  • 1
-3 votes
0 answers
22 views

Node - `url.startWith()` is not a function [closed]

I have a url returned in url as a string. I want to check if the url sent start with a specific path. However, the console returns that url.startWith is not a function. I am using Node.js. function ...
PhilM's user avatar
  • 285
0 votes
0 answers
7 views

With Node.js, how to flush keypress events on the stdin?

My program starts a Readline on the stdin and listen for keypresses. Any keypress the user sends before my program initialize are replayed once I set the listeners. How can I flush all those ...
Simon Boudrias's user avatar
-1 votes
0 answers
15 views

Cant use 'axios.post' method

I was scrapping a instagram downloader website using post method but it is showing >>> **cause: Error: write EPROTO 9C3B0000:error:0A000410:SSL routines:ssl3_read_bytes:sslv3 alert handshake ...
user26447760's user avatar
0 votes
0 answers
17 views

Gemini API import issues in Javascript

I am new to JS and APIs in general. I was trying to create a chatbot using gemini's api and I followed the basic template that is on gemini's documentation i.e const { GoogleGenerativeAI } = require(&...
Muaz Ahmed's user avatar
1 vote
0 answers
18 views

Facing error in yarn install for isolated-vm on macOS

Trying to build Backstage App on my MacOS, one of its pre requisites is Yarn , But i am unsuccessful in trying to install it. Please help I am encountering an error when running yarn install for a ...
vidhi yadav's user avatar
0 votes
1 answer
18 views

node.js v18 using babel - how to import module with extension and how to run from build folder (commonJS) while type:module is in package.json

I am using Node.JS v18.20.4 with Babel. Here is my babel.config.json { "presets": [ [ "@babel/preset-env", { "targets": { "node&...
Developer's user avatar
  • 25.8k
0 votes
0 answers
37 views

How to Upload Excel File in Node.js Using Express and Multer

I'm trying to upload an Excel file in my Node.js application using Express, Multer, and the XLSX library. I've put together the following setup, but I want to ensure I'm doing it correctly and ...
Gaurang Parante's user avatar
0 votes
0 answers
13 views

Knex js Making a helper function to get a table's query builder

I'm trying to make my knex code simpler by removing knex.from('table') or knex('table') from my queries to something like table.where(...).select() and by doing this I make sure I'm not pointing to a ...
AlfredoDaAs's user avatar
0 votes
0 answers
13 views

elasticsearch updateByQuery is not working for large data

i have written a script that will create a key "source" on 4 indices of elasticsearch based on some condition . All of my 4 indices contain at least 2~3 million data . when i ran the script ...
Karan's user avatar
  • 1
0 votes
0 answers
32 views

Having trouble running a project locally/ npm install, dependency issues

I am trying to run an example project locally. Its a full stack project so it needs to access a mongodb database. I downloaded the project files, and ran npm install so I could get everything set up, ...
tb444's user avatar
  • 1
0 votes
0 answers
16 views

Node js web app Auction how become more secure? [closed]

I don't know why my web app written in node.js with Express, Socket.io and AXIOS give me multiple errors, this is the code: Client: document.addEventListener('DOMContentLoaded', () => { const ...
user26435452's user avatar
0 votes
0 answers
17 views

ASTRO / SendGrid - Redirecting when sending is successful or gives error

I have an issue with Astro.redirect. It constantly gives me an error: "AstroError [ResponseSentError]: The response has already been sent to the browser and cannot be altered" I just want to ...
Carlos's user avatar
  • 1
3 votes
0 answers
35 views

Optimizing Mouse Movement Functionality During Screen Sharing

I am currently developing a screen-sharing application similar to Anydesk or TeamView using Electron, React, NodeJS (signalling sever) and RobotJS (for simulating mouse move events). I have used ...
Dipankar Prasad's user avatar

15 30 50 per page
1
2 3 4 5
11830