Questions tagged [node.js]

0 votes
1 replies
Knex, Postgres, and STRING_ARRAY: getting different results
I was testing out a query here using STRING_ARRAY: http://sqlfiddle.com/#!17/952405/1 Also here: SELECT to_char(workshop_date, 'YYYY-MM-DD')...
0 votes
1 replies
how to use cypress viewport refresh reload
Website is supposed to work only on Mobile web (Shows error message on desktop web), trying to automate the same using cypress viewport. Manual...
asked 4 months ago
0 votes
2 replies
Concatenate and aggregate json object data with node.js
I generate the following json in my Node application: [ { id: 1, name: 'user1', sport: 'athletics', medal_count: '1'...
asked 4 months ago
-2 votes
0 replies
How can I add a custom headers to js script?
Is it possible to add custom headers to below script? Can be in python as well as I only need to test it from within lambda. const http = requir...
asked 4 months ago
0 votes
0 replies
Returned undefined, expected Promise or value
const admin = require("firebase-admin"); const functions = require("firebase-functions"); admin.initializeApp(functions.config().firebase); exp...
-1 votes
2 replies
Ajax posting empty data
I am trying to make an AJAX post to my Express API. I am expecting {user:Todd} to be returned in my data object, however whenever i try to log...
asked 4 months ago
3 votes
1 replies
Why Chrome Refreshes the URL after certain minutes of receiving no response?
In my node application I have an anchor tag which when clicked will request an Express GET route which makes some API calls and render the respon...
asked 4 months ago
-1 votes
0 replies
How do i communicate between electron rendered process and webview express app?
I'm running express app in electron webview. I need to communicate between electron rendered process and webview express app. Because electron ha...
asked 4 months ago
-1 votes
2 replies
Angular http request for json file returns undefined
I started recently learning Angular, but it is a lot harder then i thought. I want to read in a json file into a chart on my main app page. This...
asked 4 months ago
0 votes
1 replies
Cannot access mysql database from node express app
I know this has been answered a lot but none of them seem to help me in this problem. I want to create a create-react-app client, express backend...
asked 4 months ago
0 votes
0 replies
Transform forEach in Promise (without ASYC/AWAIT) [duplicate]
Are there any issues with using async/await in a forEach loop? I'm trying to loop through an array of files and await on the contents of each fil...
asked 4 months ago
1 votes
2 replies
How to switch between indexes on fetched data in ejs?
I have sent object array to the front end and I would like it to switch the displayed data between indexes 0 and 1 (uniTimes[0]<->uniTimes[...
asked 4 months ago
2 votes
1 replies
How can I trigger an automatic click to an alert btn ok to continue loading the target url?
I'm using cheerio to scrap a web eCommerce pages, but the problem the page is blocking in an alert question if I click OK manually it pass well ,...
asked 4 months ago
0 votes
1 replies
How to get value of a DatePicker Cypress
I am doing some E2E test using cypress and I want to get the date that appears on a DatePicker element from my react app. I tried this but both r...
asked 4 months ago
0 votes
1 replies
Installing node on Windows with bash
I went to nodejs.org and used the wizard to install node on the latest Windows 10. I also enabled the Windows Subsystem for Windows and downloa...
1 votes
1 replies
Getting pngquant error when I try to install Laravel on cPanel
I have little experience with cPanel but I am required to setup a Laravel application on cpanel. I am really struggling to solve this problem....
asked 4 months ago
0 votes
1 replies
ERR_CONNECTION_REFUSED While Running Server on Other Laptop
I can host a server on my laptop and it will run fine, but on other computers I get the error: ERR_CONNECTION_REFUSED Here is the code: va...
asked 4 months ago
1 votes
1 replies
How to select a single field for documents in a MongoDB collection?
I tried get(selected values) query in mongodb.that query in working fine in mongodb shell .but I tried to run node js it not working it showing a...
0 votes
0 replies
NodeJs mssql connection string
I have a question becuse it ma getting error SQL Server Network Interfaces: Connection string is not valid what is wrong with connection string?...
asked 4 months ago
-1 votes
0 replies
Express-session does not save 'token' value
I am making a chatapp in express and now I am working on the chat creation. In order to create a chat, you need to be logged in, but my session d...
0 votes
1 replies
Empty user in request when using middleware
I'm having this problem of empty req.user whenever I use the checkAdmin middleware in my routes So I'm trying to make this middleware to check i...
asked 4 months ago
2 votes
1 replies
jsPDF addImage returns same image with multiple images
I have a strange behaviour when trying to add multiple images to jsPDF using didDrawPage Some icons are the same while other icons are being proc...
asked 4 months ago
0 votes
0 replies
form-data is getting undefined in a Node/Express API
I am trying to develop a simple API using NodeJS and Express. But Whenever I am trying to make post request using PostMan and form-data, in req.b...
0 votes
0 replies
Node.js PUT API request fails first time on server restart. Works the rest of the times
My PUT request always fails the first time after a server restart, but works after the first attempt has failed. My GET/DELETE/POST requests work...
asked 4 months ago
0 votes
0 replies
How to disable input field once adaptive cards appear in microsoft chatbot?
I am using node js with microsoft bot for webchat.where I need to disable input text box once adaptive card appear and it should enable once the...
asked 4 months ago