I am using version 3.2.1 (downgraded from 4.2.3 because of sprig not functioning correctly).
"jsvm_http_request_timeout": 120 in tyk.conf but I still receive an
error msg="JS middleware timed out after 5s"
I’ve also tried to override the conf with
- name: TYK_GW_JSVMHTTPREQUESTTIMEOUT
in the k8 deployment service.
I can’t find any mention of
jsvm_http_request_timeout in our documentation or the tyk source. Are you able to point it out?
The nearest I could find was jsvm_timeout which limits the total time of the execution of the JSVM for an API call. This defaults to 5 seconds so is probably what is limiting the runtime of the JSVM.
I searched for 5 seconds timeout error and came across this. That’s the exact problem I was facing. The correct setting isn’t mentioned there. Eventually I came across that