DavidGetter
DavidGetter

Reputation: 369

How to get Http-proxy-middleware to work with firebase cloud functions?

currently I am creating an API Gateway and for that I started working with the http-proxy-middleware library.
However I have read from the docs that libraries which modify the request usually cause problems with http-proxy-middleware (e.g body parser).
I reckon that the Firebase Cloud Functions library does that as well.
Has somebody experienced the same?
For Example, a post request with body does not terminate until a timeout is triggered.
And I am pretty much sure, that the problem cause is the Firebase library, simply because whenever I comment it out, the post request works normally.

Upvotes: 0

Views: 1497

Answers (1)

DavidGetter
DavidGetter

Reputation: 369

I followed the second most voted answer from chimera here
The one where restream is created.

Upvotes: 1

Related Questions