Hello i have deployed a WSO2 API in API Manager 4.3 that connects with a backend for requesting for a PDF, when i try to request it, returns a 200 HTTP code with correct headers but empty pdf, in the wso2carbon log it shows:
TID: [] [] [2025-03-17 11:56:30,570] WARN {.apache.synapse.transport.passthru.TargetHandler} - ERROR_CODE = 101504, STATE_DESCRIPTION = Socket Timeout occurred after Server read the response headers but prior to reading the response body from the backend, INTERNAL_STATE = RESPONSE_BODY, DIRECTION = RESPONSE, CAUSE_OF_ERROR = Connection between the WSO2 Server and the BackEnd timeouts
The backend works if i try it directly, it seems that WSO2 does not wait for the pdf body and it returns the headers and not the pdf. How can i increase the time that WSO2 waits for the body response when it receives the response headers? Because it seems that when it receive the responde headers inmediatly returns the response without the pdf body. Sometimes, i assume that when the backend response faster with the response body it works, but most of the time it doesnt.
Thanks