Questions tagged [node.js]
Node.js is an event-based, non-blocking, asynchronous I/O runtime that uses Google's V8 JavaScript engine and libuv library. It is used for developing applications that make heavy use of the ability to run JavaScript both on the client as well as on the server side and therefore benefit from the re-usability of code and the lack of context switching.
node.js
473,185
questions
-1
votes
0
answers
10
views
Invalid Telegram data hash
Help, when checking the hash it gives the error “Invalid Telegram data hash.”
Perhaps someone has encountered this, I would be very grateful for your help..................................................
0
votes
1
answer
6
views
How to resolve a Cors error when trying to get an authentication token using authorisation code grant in Next.js
I have an app where im trying to send a generated pdf to get a signature. Pretty straightforward.
I got the authentication working in postman, but when I try it in code, I get this error:
Access to ...
0
votes
0
answers
6
views
How to create a item in the Todo list
When you make a new item on the todo list it makes a new row but when you make a second one instead of making a new item on the todo list it changes the previous one. How would you go around making a ...
0
votes
0
answers
5
views
Cookie gets removed on refreshing or reload -- express/cookie/jwt
Cookie gets removed on refreshing or reload: I am using express js to set cookie and react as a frontend:
Can anyone explain why coocki gets deleted after refreshing page?....please help as soon as ...
0
votes
1
answer
11
views
Prisma ConversionError Unable to fit integer value '6484250528' into an INT4
I am trying to use prisma and postgresql to do a simple query, but the findUnique function throws the below error:
Error occurred during query execution:
ConnectorError(ConnectorError { ...
0
votes
0
answers
9
views
VITE:Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type
I am seeing the following error in the browser when I launch my web page for production.
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of &...
0
votes
0
answers
8
views
Why is (data-reveal="bottom") blocking my Pug file from rendering in the browser?
I am trying to use Pug to create an HTML template, but I am encountering an issue where my Pug file is not rendering in the browser. I have narrowed down the problem to the usage of a custom attribute ...
0
votes
0
answers
6
views
Discord error "Interaction has already been acknowledged"
I'm trying to make a discord bot which will track your hack club arcade sessions, but I am coming across the issue "Interaction has already been acknowledged" in my code.
await interaction....
-3
votes
0
answers
23
views
Could anyone explain few lines of code for me in typescript? [closed]
enter image description here
Line 14 cannot understand function types in the app.post
I know you like blocking things but i have got nowhere to go with this question.
"Lorem ipsum dolor sit amet, ...
0
votes
0
answers
4
views
Gramjs addEventHandler stops getting new updates after few minutes
I'm having a problem listening for new messages. After a couple of minutes, the addEventHandler method stops working. What could be happening?
this.client = this.client = new TelegramClient(this....
-1
votes
0
answers
10
views
Hostinger VPS is not showing any of my hostinger website files or domains
I connect to my hostinger VPS with putty and I have my domains' ssh pointed to my VPS IP address but they still do not show up when i go to var/www/html. I'm trying to connect to them to install ...
0
votes
0
answers
11
views
Slow lambda run times when using SharpJS
I have an AWS Object Lambda in Node 20.x that uses SharpJS to watermark and reduce an image size upon GET requests.
Code looks like this:
export const handler = async (event) => {
const start = ...
0
votes
0
answers
9
views
How can I import a file on nodemon.json?
I want to add this statement in my nodemon.json exec:
--import ./instrumental.mjs
here is my code:
{
"watch": ["src"],
"ext": "ts,json",
"ignore&...
0
votes
0
answers
14
views
NestJS CORS Error It's working well all of a sudden, but an error suddenly occurs
import { NestFactory, Reflector } from "@nestjs/core";
import { Logger, ValidationPipe } from "@nestjs/common";
import { AppModule } from "./app.module";
import { ...
0
votes
0
answers
10
views
Vercel "A Serverless Function has exceeded the unzipped maximum size of 250 MB" error while deploying NextJS app
I am currently deploying a Vercel app built with NextJS (React/TS/Tailwind) and a Python FastAPI backend
My directory looks like the following:
This is my package.json which contains my frontend ...