Hosting in and Proxying to IIS #1547
-
I'm having some issues with YARP and IIS and I'm wondering if anyone has run into something like this before, or might be able to advise that this is unsupported. I'm running the YARP project inside of IIS (via the aspnetcore module). The downstream clusters are also hosted in IIS (one on the same machine, the others elsewhere). According to the logs, proxying itself is working successfully. However in the browser I get intermittent failures with protocol errors, specifically When first configuring this setup I was getting similar issues across the board (not intermittently), which seemed to be fixed by disabling dynamic compression on the YARP IIS application. I've tried running in/out of process. I've disabled compression and expanded request limits in IIS and disabled/enabled response buffering in YARP but nothing seems to resolve this. So far as the logs are concerned, everything is fine which is making this difficult to diagnose. Everything runs flawlessly if we run YARP as a console application instead, which is what has convinced me that IIS-to-IIS is somehow the culprit. Is there anything special that needs to be done when going IIS-to-IIS? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
It should just work on IIS though we don't test it much. We have fixed a few bugs in YARP and AspNetCore specific to IIS. What versions of YARP and AspNetCore are you using? Can you show us any customizations you've added in the proxy such as manipulating the headers or body? Are you using http or https between YARP and the backends? |
Beta Was this translation helpful? Give feedback.
It should just work on IIS though we don't test it much. We have fixed a few bugs in YARP and AspNetCore specific to IIS. What versions of YARP and AspNetCore are you using?
Can you show us any customizations you've added in the proxy such as manipulating the headers or body?
Are you using http or https between YARP and the backends?