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
We've seen that in super rare cases a cold start request to Function App might incorrectly return an error response of the form:
{
'statusCode': 400,
'headers': {
'Date': 'Mon, 25 Nov 2024 19:42:56 GMT',
'Content-Length': '334',
'Content-Type': 'text/html'
},
'body': '<!DOCTYPE HTML PUBLIC \\'-//W3C//DTD HTML 4.01//EN\\'\\'http://www.w3.org/TR/html4/strict.dtd\\'>\\r\\n<HTML><HEAD><TITLE>Bad Request</TITLE>\\r\\n<META HTTP-EQUIV=\\'Content-Type\\' Content=\\'text/html; charset=us-ascii\\'></ HEAD >\\r\\n<BODY><h2>Bad Request - Invalid Hostname </h2>\\r\\n<hr><p>HTTP Error 400. The request hostname is invalid. </p>\\r\\n</BODY></HTML>'
}
This has come up most recently in the following CRI: https://portal.microsofticm.com/imp/v5/incidents/details/570328048/summary. Investigation has shown that this response isn't coming from the App Service platform, nor the Functions Host runtime. It appears to be coming from ASP.NET HostFilteringMiddleware. Now the Functions Host doesn't register or configure this middleware in any way. See also this code.
While we don't know yet what might be causing this, this issue will serve as a tracking item to see if we get more cases of this. In the case we saw, when the request was retried it succeeded so the issue is super rare and transient.
The text was updated successfully, but these errors were encountered:
We've seen that in super rare cases a cold start request to Function App might incorrectly return an error response of the form:
This has come up most recently in the following CRI: https://portal.microsofticm.com/imp/v5/incidents/details/570328048/summary. Investigation has shown that this response isn't coming from the App Service platform, nor the Functions Host runtime. It appears to be coming from ASP.NET HostFilteringMiddleware. Now the Functions Host doesn't register or configure this middleware in any way. See also this code.
While we don't know yet what might be causing this, this issue will serve as a tracking item to see if we get more cases of this. In the case we saw, when the request was retried it succeeded so the issue is super rare and transient.
The text was updated successfully, but these errors were encountered: