95,384 questions
0
votes
0
answers
19
views
Using Express session ID as Client ID for an anonymised event count in Google Analytics
I am setting up Google Analytics for a web application. In addition to the standard client-side implementation, I want to track some events from the server, using the measurement protocol.
This should ...
0
votes
1
answer
33
views
On product edit page, to send the same images, need to click on the button and choose the same images again
On the product edit page, if you want to send the same images, you'll need to click the button and select "Same Images" again.
The images are uploaded to Cloudinary as URLs, and they don't ...
-1
votes
0
answers
29
views
Pins only appear when i refresh after i login . How do i fix this problem?
I am building a Travel-log app using Node.js/Express where users can add pins on map and log entry for each pin. Currently when i login, i also need to refresh for the pins to appear. Also when i log ...
0
votes
0
answers
13
views
Why does new Model() work with my custom interface but insertMany() doesn't return the same type in Mongoose + TypeScript?
I'm new to express and I'm using Mongoose with TypeScript and ran into a typing inconsistency that I can't wrap my head around.
I have a custom interface IVoyageLeg that extends Document, and I'm ...
0
votes
0
answers
12
views
Erro: nodeJS - Empty Callback=undefined or baseUrl=http://localhost:8080 - Onlyoffice document server with Vue.js 2 + TS
I am working with ONLYOFFICE Document Server running in a Docker container. My frontend and backend are running on my local machine. However, when trying to save a document via the ONLYOFFICE editor, ...
-1
votes
0
answers
16
views
Is there an router attribute which is the opposite of @Hidden?
Currently Im using @Hidden attribute on each controller function (which kind of blackList) and I want to use whiteList and to pick only the ones that need to be exposed in swagger and not the one that ...
-2
votes
0
answers
33
views
Keeping Modal open with AJAX background data refresh [closed]
I have a Node.js Express app using DataTables, and in those DataTables, I have child rows with bootstrap 5 modals. The modals open just fine; however, I am refreshing the data in the background every ...
-1
votes
0
answers
9
views
How to effectively format "System" prompts and rubric-style instructions in .jsonl files for fine-tuning?
I'm working on preparing a .jsonl file for fine-tuning a language model and had two questions:
Q2. What are some best practices for writing the "System" prompt in the dataset? Are there ...
0
votes
0
answers
33
views
Process is not defined using mariaDb with Vite
I am getting the following error trying to run a MariaDb file in a node enviornment.
Ive started the express api and when I try to run the application, I get this:
Uncaught ReferenceError ...
0
votes
1
answer
26
views
Express NodeJS code is not reading the asset directory
My directory is in form
-split
-splitSiteFiles (css/js/html assets)
servercode.js
I want the servercode.js to access the files in the splitSiteFiles folder but the solutions I have tried do ...
-4
votes
0
answers
41
views
ExpressJS API integration [closed]
I've been trying to build an API integrated section for my website since it needs a news section. I have a small amount currently built but am struggling with getting it to work. This is through using ...
-1
votes
0
answers
36
views
How to fix here "EPIPE" in Node js Socket.io
Receiving this error:
Error: write EPIPE
at afterWriteDispatched (node:internal/stream_base_commons:161:15)
at writeGeneric (node:internal/stream_base_commons:152:3)
at Socket....
-1
votes
0
answers
88
views
Cannot POST error in production but works on localhost
I am encountering a Cannot POST error in my production environment, but the same API endpoint works fine in my local development environment. The issue seems to be specific to the production setup, ...
-3
votes
0
answers
35
views
Not able to run server [closed]
PS C:\Users\HP\Desktop\CODING\Gigx\Project_001\project1_Frontend> npm run start
[email protected] start
react-scripts start
(node:2456) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning:...
-2
votes
0
answers
38
views
How to join three collections with pagination and shared filters (under 2s response time)? [closed]
I'm working on a MongoDB query where I need to join data from three collections and apply filtering and pagination across all of them. Here's what I'm trying to achieve:
Join data from three ...