Category "express"

How can i realize http-streaming of kafka messages to endpoint on Nodejs?

I've been trying to realize stream kafka messages by get endpoint on client side using http-streaming. Thats my kafka consumer, where i recieve messages from pr

Stripe API "No valid payment method types for this Payment Intent."

As you can imagine I´m currently setting up the payment API with using Stripe. Problem is, I´ve never done such thing before and am following the do

Express or Axios Error: socket hang up code: ECONNRESET

This is the first time i post a question here, sorry if some data is missing. I'm trying to do some web scraping to get some info of a table. The page only resp

Keeping node.js express running after logoff

I've setup a node.js app started with pm2 and all is working fine I've also tried adding watch and save options (see more about the windows service below) pm2 s

Next.js: React Apollo Client Not sending cookies?

I'm using Apollo Client as a graphql client on my next.js application, Here is the function that creates a client for me: let client: ApolloClient<any>;

Can I subscribe event fire from smart contract's events with NodeJS?

I just wrote smart contract function with fire event like this. And create my node.js application with following code. const express = require('express') cons

Operand should contain 1 column in express mysql query

Am curretly facing the following error when i try to query using express code: 'ER_OPERAND_COLUMNS', errno: 1241, sqlMessage: 'Operand should contain 1 co

Frontend fetch not working but backend shows the API

I have been trying to fetch the user's data from the backend to set it to the state in the front-end of my application. I am using MERN stack. I am on my learni

steam passport implementation, convert from express to nestjs

I've started to convert express project to nestjs. How should it work in Nestjs. Here is working code from Express. (Code below just redirects to steam sign-in

How to pass a file to server and then send it back to client?

I'm currently working with pdf files in ReactJS and modifying them in my server side. The problem is, i don't know how to pass my file data to the server side a

Get and render image from API in (Vue)JS?

I have a website running VueJS at localhost:3000 which does some stuff to call this.nextImage(). methods: // content // async nextImage() { console.log("In

Next.js serving static files that are not included in the build or source code

I have files that are not stored in a CDN and would like to serve them with Next.js. These files are not intended to be integrated into Next.js and should not b

I can't call PATCH method using Pug, Mongoose and Express.js

I am new to code and I apologize in advance for all my noob mistakes. I'm trying to set a new color to an existing object stored in MongoDB using the PATCH meth

IPFS Pinata service not accepting file

I have a code as shown below that uploads files from the browser and saves in the server, once it has been saved to the server, I want the server to connect to

Test Suite Failed to run

Error thrown: "Exceeded timeout of 5000 ms for a hook. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 24 | &

When I am trying get cookies it gives me error as -> TypeError: Cannot read property 'token' of undefined

I have created jwt token as follows: const jwt = require('jsonwebtoken'); const mongoose = require('mongoose'); const bcrypt = require('bcrypt'); const userSc

Method expression is not of Function type (mongoose Model)

i came across this error today and did not find a fix for it. const mongoose = require('mongoose'); const userSchema = mongoose.Schema({ name: {type:St

DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

I am deploying my angular application on tomcat server. I have run the ng build --prod command and copied my dist folder on the server. Before accessing the pag

Socket.io is working on localhost but not working after deploying heroku?

Here is the code of my socket server const io = require("socket.io")(8080, { cors: { // origin: "http://localhost:3000", origin: "https://mern-bubble.he

Jest test a function integrated with the ssh2-sftp-client library

I need to test a function that write a file from local path to remote path on an sftp machine using shh2-sftp-client library. my own function is the following: