http-proxy-middleware icon indicating copy to clipboard operation
http-proxy-middleware copied to clipboard

response of api called is to large

Open vacrozet opened this issue 6 years ago • 6 comments

The answer from my API that is calling with the proxy is really very big and the proxy does not support it. Have you ever encountered this problem, and do you have a solution, option for big data?

api.use(\'/funnel\', middle(), proxy({
  logLevel: "debug",
  target: config.bigDataFunnelUrl,
  pathRewrite: {
    '^/funnel/upload-csv': 'funnel/smatch/csv/collect_api',
    '^/funnel/update-funnel-analysis': 'funnel/command/update_funnel_analysis',
    '^/funnel/update-funnel': 'funnel/command/update_funnel_csv',
  },
}));

vacrozet avatar Dec 10 '19 08:12 vacrozet

What is the size of the response you are dealing with?

Would be nice if you can provide a minimal setup to reproduce the issue for investigation.

chimurai avatar Dec 11 '19 19:12 chimurai

when i try with response body of approximatly 44ko it's OK but 77ko it's KO.

vacrozet avatar Dec 12 '19 13:12 vacrozet

Maybe it's me. The unit ko is unkown to me. Is that kilobytes, megabytes?

chimurai avatar Dec 15 '19 21:12 chimurai

yes kilobytes

vacrozet avatar Dec 16 '19 13:12 vacrozet

That's not super large. I've have been proxying responses which are larger than 77 kilobytes...

Can you provide a minimal example in which this issue is reproduced?

chimurai avatar Dec 16 '19 20:12 chimurai

Closing issue.

Feel free to reopen when issue can be reproduced in a minimal example

chimurai avatar Mar 30 '21 21:03 chimurai