Welcome! Log In Create A New Profile

Advanced

large request body in njs

Jonathan Esterhazy
October 29, 2018 04:46PM
Hello!

I am trying to use njs (ngx_http_js_module) to modify POSTed request data
before sending to an upstream api. Using the req.requestBody function works
fine for small requests, but for larger ones causes this error:

[error] 14#14: *18 js exception: Error: request body is in a file

If I was using the Lua module, I could use ngx.req.get-body_file function
to get this data, but there doesn't seem to be any way to do that in njs.
Did I miss something? Is there a way to access the data or find out the
filename?
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

large request body in njs

Jonathan Esterhazy October 29, 2018 04:46PM

Re: large request body in njs

Dmitry Volyntsev October 30, 2018 05:16AM

Re: large request body in njs

Jonathan Esterhazy October 30, 2018 10:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 267
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready