最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

WSO2 timeout waiting for response body - Stack Overflow

programmeradmin3浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论