Questions tagged express

Explore the latest questions and answers asked by our top developers.

Dockerized React app axios req to Backend doesn’t work

I have 2 containers: nginx(serving React app) node Both inside the same docker-compose file. When i run it locally (‘npm start’ for React and node index.js for backend) they work fine (backend receive request) – but when they are both in containers, something goes wrong.. ** when i exec the nginx container – it does […]

By Eyal Solomon
Published
Categorised as docker, docker-compose, express, nginx, reactjs Tagged , , , ,

Multer not saving files to specified folder and no errors showing

I’m trying to get Multer to save images in an src/uploads directory. Everything seems to work fine with no errors but the src/uploads directory is empty after the endpoint is called. I’m using a microservices architecture using Node, Express, and running it locally DockerDesktop + Kubernetes using Skaffold. Here is my route: import express, { […]

By Harry Riley
Published
Categorised as docker, express, multer, node.js Tagged , , ,

Multer not uploading files to directory and no errors showing

I’m trying to get Multer to save images in an src/uploads directory. Everything seems to work fine with no errors but the src/uploads directory is empty after the endpoint is called. I’m using a microservices architecture using Node, Express, and running it locally DockerDesktop + Kubernetes using Skaffold. Here is my route: const router = […]

By Harry Riley
Published
Categorised as docker, express, multer, node.js Tagged , , ,

Docker and Multer upload volumes ENOENT error

first question + junior dev here ! So my problem is : I’m developping an API whith nodejs/express + Docker and Multer where I want to upload files. I tried to configure Docker as good as I can, same for Multer and persist uploaded files in a volume but it keeps throwing me this error […]

By MajorBaguette
Published
Categorised as docker, express, javascript, multer, node.js Tagged , , , ,

How do I delete downloaded png files from docker /app?

I have downloaded pictures stored in the docker container. The folder where I am storing them is /app. When I try to delete them using the follwing NodeJS snippet FilePath = `/app/${file_name}` var fs = require(‘fs’); fs.unlink(FilePath, function (err) { if (err) throw err; // if no error, file has been deleted successfully console.log(‘File deleted!’); […]

By chixcy
Published
Categorised as docker, express, javascript, node.js Tagged , , ,

Communication between nodejs express server and docker containers

I’m building a system where users can connect to a server, whose sole responsibility is authentification. The main application sits in a docker container that is running a VNC server. https://github.com/wwwshwww/novnc-ros-desktop Upon authentification I would like to direct the user towards the VNC view, but regular redirects would not work since the client would not […]

By chuoky
Published
Categorised as docker, express, networking, node.js Tagged , , ,

Redis create client always connecting to 127.0.0.1 even if i specifically change the redis host ip

I’m having a issue trying to connect my app container to the redis container. Keep getting the same error -> Error: connect ECONNREFUSED 127.0.0.1:6379 But this only happens if I run both in a docker container. If I try to run only redis in a container and my app locally all seems to be working […]

Express Route returns status code 500 with generic ‘Error’ when file is sent as ‘multipart/form-data’

DETAILS: I have an express route which is set up to accept files as multipart/formdata and upload them to an S3 bucket. I am using multer to filter image types, as well as store them temporarily on the server through the creation of an upload directory. The files are removed shortly after upload success. The […]

By jacoblim
Published
Categorised as amazon-ecs, docker, express, javascript, node.js Tagged , , , ,

How can I connect my angular production build with my express api in docker?

Hey I have got an express api which sends an empty json object on localhost:3001/ I deployed the api on docker and it works. Now I would like to access it from my angular application. But I got only the following Error: app.component.ts constructor(private http: HttpClient) { setInterval(()=>{ console.log("hier") this.http.get<any>(environment.wsExpress) .subscribe((data:any)=>{ console.log(data) }) },1000) } […]

By Ryan Wegmeier
Published
Categorised as angular, docker, express Tagged , ,

Docker Container Not Showing Up

I am following along with this tutorial to learn how to containerize a node.js / express application I’m working on. Everything seems to be working fine, except that when I docker ps after building the container, I don’t see my running container. Node.js / express code: const express = require("express"); const app = express(); const […]

By John Sorensen
Published
Categorised as docker, express, node.js Tagged , ,
1 2 3 19

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq