Closed Costiss closed 11 months ago
http-proxy-middleware
Iim triyng to use and express server as API Gateway, with Google Cloud Functions
Im running locally with @google-cloud/functions framework. On Cloud the behavior is the same https://cloud.google.com/functions/docs/running/function-frameworks?hl=pt-br
The request lasts forever. After timeout, I get this error on target server
On Gateway server it justs timeout
1. Create a express server with createProxyMiddleware 2. run with function-framework 3. try to make a request
Excpected same behavior as runing withou serverless
http-proxy-middleware@2.0.6
createProxyMiddleware(PROXY_PATH, { target: TARGET_URL, changeOrigin: true, pathRewrite: { [PROXY_PATH]: `/api/v1/` }, secure: false })
PopOs 22.04LTS && NodeJs v18.13.0
No response
Could you try to run your application with Node v14 and see if you have the same issue?
Checks
http-proxy-middleware
.Describe the bug (be clear and concise)
Iim triyng to use and express server as API Gateway, with Google Cloud Functions
Im running locally with @google-cloud/functions framework. On Cloud the behavior is the same https://cloud.google.com/functions/docs/running/function-frameworks?hl=pt-br
The request lasts forever. After timeout, I get this error on target server![image](https://user-images.githubusercontent.com/41318271/214895035-3229fd56-d8bd-47de-b531-091b962c300c.png)
On Gateway server it justs timeout![image](https://user-images.githubusercontent.com/41318271/214896468-f76aa66b-7459-44d0-854b-230bd4d22d46.png)
Step-by-step reproduction instructions
Expected behavior (be clear and concise)
Excpected same behavior as runing withou serverless
How is http-proxy-middleware used in your project?
What http-proxy-middleware configuration are you using?
What OS/version and node/version are you seeing the problem?
Additional context (optional)
No response