I am getting 502.3 when accessing some files using ARR.
The confusing thing is that the error occurs every 2 requests, and only if accessed via ARR.
Error Code0x80072f78
The Failed req trace gives this message:
ModuleName
ApplicationRequestRouting
Notification
128
HttpStatus
502
HttpReason
Bad Gateway
HttpSubStatus
3
ErrorCode
2147954552
ConfigExceptionInfo
Notification
EXECUTE_REQUEST_HANDLER
ErrorDescription
The server returned an invalid or unrecognized response
I used netsh trace, and this is the result :
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.524 ::WinHttpQueryHeaders() returning TRUE
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.524 ::WinHttpReceiveResponse() returning TRUE
WINHTTP_MicrosoftWindowsWinHttp:Stopping WorkItem Thread Action (Context: 0x0000000000228BC0)
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.524 ::WinHttpReadData(0x1d44b0, 0x2a04db0, 8192, 0x0)
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.524 ::usr-req 02A285E0 issuing read-data call 02A1B6A0 (buffer = 02A04DB0, bufsize = 8192, filled size = 0, toRead = 8192)
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.524 ::current thread is not impersonating
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.524 ::sys-recver calling WebReceiveHttpResponseEntity(overlapped = 02A2BEA0, buffer-size = 8192)
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.524 ::sys-recver transitioning from state _HEADERS_RECVED to state _READING_DATA
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.524 :: <c-b> an async I/O operation completes (overlapped = 02A2BEA0, #bytes/info = 1245, error = ERROR_SUCCESS (0))
WINHTTP_MicrosoftWindowsWinHttp:Queue WorkItem Thread Action (Context: 0x0000000002A2BED0)
WINHTTP_MicrosoftWindowsWinHttp:Queue Overlapped IO Thread Action (Context: 0x0000000002A2BEA0)
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.524 ::sys-req pends read-data
WINHTTP_MicrosoftWindowsWinHttp:Starting WorkItem Thread Action (Context: 0x0000000002A2BED0)
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.524 ::WinHttpReadData() returning TRUE
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.524 ::sys-recver processing WebReceiveHttpResponseEntity completion (error-cdoe = ERROR_SUCCESS (0x0), #bytes = 1245, overlapped = 02A2BEA0)
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.524 ::sys-req completes read-data successfully; # bytes transferred = 1245
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.524 ::sys-req completing a read-data call (error = ERROR_SUCCESS (0), cbRead = 1245)
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.524 ::usr-req 02A285E0 received OnReadData() callback; error = ERROR_SUCCESS (0), ulNumberOfBytesTransferred = 1245, dwptrContext = 02A1B6A0
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.524 ::usr-req 02A285E0 completing (async) sys::read-data (buffer = 02A04DB0, bufsize = 8192, filled size = 0)
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.524 ::Completing WinHttpReadData() with success; Request Handle = 001D44B0, Context = 028D73E0, Buffer = 02A04DB0 (0x4F44213C), Buffer Length = 1245
WINHTTP_MicrosoftWindowsWinHttp:Stopping WorkItem Thread Action (Context: 0x0000000002A2BED0)
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.526 ::WinHttpCloseHandle(0x1d44b0)
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.526 ::usr-req 02A285E0 releases sys-req 01964360
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.526 ::sys-req calling WebCancelHttpRequest
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.526 ::sys-req WebCancelHttpRequest completed with ERROR_SUCCESS (0)
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.526 ::usr-req 02A285E0 is shutting down
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.526 ::Indicate Status 0x1d44b0, 0x28d73e0, WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING (2048), 0x22dfba0 [0x1d44b0], 8
WINHTTP_MicrosoftWindowsWinHttp:00:40:34.526 ::WinHttpCloseHandle() returning TRUE
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::WinHttpOpenRequest(0x19eaad0, "GET", "/app/resources/common/scripts/native/combobox/combobox.css", "HTTP/1.1", "", 0x0, 0x00000080)
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::Indicate Status 0x1d44b0, 0x0, WINHTTP_CALLBACK_STATUS_HANDLE_CREATED (1024), 0x236eb08 [0x1d44b0], 8
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::WinHttpCreateUrl(0x236ea40, 0x0, 0x0, 0x236eb08)
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 :: WinHttpCreateUrl(); URL = (null), URL Length = 0
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 :: WinHttpCreateUrl: error 122 [ERROR_INSUFFICIENT_BUFFER]
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::WinHttpCreateUrl() returning FALSE
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::WinHttpCreateUrl(0x236ea40, 0x0, 0x2a1bfa0, 0x236eb08)
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 :: WinHttpCreateUrl(); URL = http://some.site.com/app/resources/common/scripts/native/combobox/combobox, URL Length = 84
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::WinHttpCreateUrl() returning TRUE
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::WinHttpOpenRequest() returning handle 0x1d44b0
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::WinHttpSetTimeouts(0x1d44b0, 120000, 120000, 120000, 120000)
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::WinHttpSetTimeouts() returning TRUE
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::WinHttpSetOption(0x1d44b0, WINHTTP_OPTION_MAX_RESPONSE_DRAIN_SIZE (92), 0x236ed74 [0x400000], 4)
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::WinHttpSetOption() returning TRUE
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::WinHttpSetOption(0x1d44b0, WINHTTP_OPTION_MAX_RESPONSE_HEADER_SIZE (91), 0x236ed7c [0x10000], 4)
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::WinHttpSetOption() returning TRUE
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::WinHttpSetOption(0x1d44b0, WINHTTP_OPTION_DISABLE_FEATURE (63), 0x236ed18 [0x5], 4)
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::WinHttpSetOption() returning TRUE
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::WinHttpSendRequest(0x1d44b0, "Cache-Control: max-age=0\r\nAccept: text/html,application/xhtml+xml,application/xm", 611, 0x0, 0, 0, 28d73e0)
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::WinHttpAddRequestHeaders(0x1d44b0, "Cache-Control: max-age=0\r\nAccept: text/html,application/xhtml+xml,application/xm", 611, 0x20000000)
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::WinHttpAddRequestHeaders() returning TRUE
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::usr-req 02A04DB0 transitioning from state _READY to state _SENDING_RECVING
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::sys-req updates BytesToSend to 0
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::sys-req transitioning from state _INIT to state _SENDING
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::current thread is not impersonating
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::sys-sender calling HttpSendHttpRequest(overlapped = 00228C60)
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::sys-sender transitioning from state _INIT to state _SENDING
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::usr-req 02A04DB0 received OnSendingRequest callback
WINHTTP_MicrosoftWindowsWinHttp:Queue Overlapped IO Thread Action (Context: 0x0000000000228C60)
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::sys-req pends send-request
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::WinHttpSendRequest() returning TRUE
WINHTTP_MicrosoftWindowsWinHttp:00:40:36.456 ::usr-req 02A04DB0 received OnRequestSent callback
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 :: <c-b> an async I/O operation completes (overlapped = 00228C60, #bytes/info = 0, error = ERROR_SUCCESS (0))
WINHTTP_MicrosoftWindowsWinHttp:Queue WorkItem Thread Action (Context: 0x0000000000228C90)
WINHTTP_MicrosoftWindowsWinHttp:Starting WorkItem Thread Action (Context: 0x0000000000228C90)
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::sys-sender processing HttpSendHttpRequest completion (error-cdoe = ERROR_SUCCESS (0x0), #bytes = 0, overlapped = 00228C60)
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::sys-sender sent a request successfully
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::sys-req completing a send-request call (error = ERROR_SUCCESS (0))
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::usr-req 02A04DB0 received OnSendRequest callback; error = ERROR_SUCCESS (0)
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::Completing WinHttpSendRequest() with success; Request Handle = 001D44B0, Context = 028D73E0, Buffer = 00000000 (0x0), Buffer Length = 0
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::WinHttpReceiveResponse(0x1d44b0, 0x0)
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::sys-recver starts in _INIT state
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::current thread is not impersonating
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::sys-recver processing WebReceiveHttpResponse completion (error-cdoe = ERROR_SUCCESS (0x0), overlapped = 00228C60))
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::sys-recver has received response from WebIO
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::sys-recver returning ERROR_SUCCESS (0) from RecvResponse()
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::sys-req completes recv-headers inline (sync); error = ERROR_SUCCESS (0)
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::usr-req 02A04DB0 recved final status code 304
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::usr-req 02A04DB0 transitioning from state _SENDING_RECVING to state _HEADERS_RECVED
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::Completing WinHttpReceiveResponse() with success; Request Handle = 001D44B0, Context = 028D73E0, Buffer = 00000000 (0x0), Buffer Length = 0
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::WinHttpQueryHeaders(0x1d44b0, HTTP_QUERY_RAW_HEADERS_CRLF (0x16), "<null>", 0x192e630, 0x192e4b0 [1024], 0x0 [0])
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 :: WinHttpQueryHeaders(); Header = HTTP/1.1 304 Not Modified
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::WinHttpQueryHeaders() returning TRUE
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::WinHttpReceiveResponse() returning TRUE
WINHTTP_MicrosoftWindowsWinHttp:Stopping WorkItem Thread Action (Context: 0x0000000000228C90)
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::WinHttpReadData(0x1d44b0, 0x2a3acf0, 8192, 0x0)
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::usr-req 02A04DB0 issuing read-data call 02A1C060 (buffer = 02A3ACF0, bufsize = 8192, filled size = 0, toRead = 8192)
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::current thread is not impersonating
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::sys-recver calling WebReceiveHttpResponseEntity(overlapped = 02A2BF90, buffer-size = 8192)
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::sys-recver transitioning from state _HEADERS_RECVED to state _READING_DATA
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 :: <c-b> an async I/O operation completes (overlapped = 02A2BF90, #bytes/info = 0, error = ERROR_HANDLE_EOF (38))
WINHTTP_MicrosoftWindowsWinHttp:Queue WorkItem Thread Action (Context: 0x0000000002A2BFC0)
WINHTTP_MicrosoftWindowsWinHttp:Queue Overlapped IO Thread Action (Context: 0x0000000002A2BF90)
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::sys-req pends read-data
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::WinHttpReadData() returning TRUE
WINHTTP_MicrosoftWindowsWinHttp:Starting WorkItem Thread Action (Context: 0x0000000002A2BFC0)
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::sys-recver processing WebReceiveHttpResponseEntity completion (error-cdoe = ERROR_HANDLE_EOF (0x26), #bytes = 0, overlapped = 02A2BF90)
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::sys-recver detected EOF; all data has been read
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::sys-req completes read-data successfully; # bytes transferred = 0
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::sys-req shutting down; End-Of-File reached for read-data
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::sys-req completing a read-data call (error = ERROR_SUCCESS (0), cbRead = 0)
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::usr-req 02A04DB0 received OnReadData() callback; error = ERROR_SUCCESS (0), ulNumberOfBytesTransferred = 0, dwptrContext = 02A1C060
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::usr-req 02A04DB0 completing (async) sys::read-data (buffer = 02A3ACF0, bufsize = 8192, filled size = 0)
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.049 ::Completing WinHttpReadData() with success; Request Handle = 001D44B0, Context = 028D73E0, Buffer = 02A3ACF0 (0x0), Buffer Length = 0
WINHTTP_MicrosoftWindowsWinHttp:Stopping WorkItem Thread Action (Context: 0x0000000002A2BFC0)
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.070 ::WinHttpCloseHandle(0x1d44b0)
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.070 ::usr-req 02A04DB0 releases sys-req 019644E0
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.070 ::sys-req failed to cancel the request; the object is already shutting down
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.070 ::usr-req 02A04DB0 is shutting down
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.070 ::Indicate Status 0x1d44b0, 0x28d73e0, WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING (2048), 0x236f820 [0x1d44b0], 8
WINHTTP_MicrosoftWindowsWinHttp:00:40:38.070 ::WinHttpCloseHandle() returning TRUE
Has anyone encountred this?