You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
async function request_handling(r) {
r.log("here in njs script");
let test= await r.subrequest('/njs_target');
r.log("did subrequest from njs to location");
r.return(200, test);
return;
}
export default {request_handling}
As soons as i do a curl request to the location /init the request stucks until i terminate the connection, or some timeout kicks in.
Inside the Nginx debug logs, i can see the last log lines from njs and the nginx line "http finalize request: 0, "/njs_target?" a:0, c:3" which should close everything and return back to LUA, but its not the case.
These are the last debug logs:
If i remove the njs subrequest, it is working again, but from my side it seems LUA is waiting for something if i enable the NJS subrequest, but i cant figure out what it is.
Hi,
I have following situation.
I have a nginx plus ingress controller running inside Kubernetes. Nginx exposes a service with a location:
The rewrite.lua script looks like this:
The script sends a subrequest to following location:
Further, the njs script does following:
As soons as i do a curl request to the location /init the request stucks until i terminate the connection, or some timeout kicks in.
Inside the Nginx debug logs, i can see the last log lines from njs and the nginx line "http finalize request: 0, "/njs_target?" a:0, c:3" which should close everything and return back to LUA, but its not the case.
These are the last debug logs:
If i terminate the curl command on the client side, these two lines show up in the nginx logs:
If i remove the njs subrequest, it is working again, but from my side it seems LUA is waiting for something if i enable the NJS subrequest, but i cant figure out what it is.
Version overview of the test environment:
I also had the same behavior with the latest NJS Version 0.8.8 and NGINX plus r33.
One more thing to mention, everything is working with following version:
Many thanks in advance.
Cheers
The text was updated successfully, but these errors were encountered: