System.ArgumentException: Invalid destination prefix. #1532
-
can someone explain about this error?? this error, happens when i hit the api with reverse proxy |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
What does your config look like? Seeing this exception means the prefix was shorter than 8 characters, meaning it couldn't possibly be a start of an Absolute Url. |
Beta Was this translation helpful? Give feedback.
What does your config look like?
destinationPrefix is taken from your Destination's Address and we only do minimal validation.
https://github.com/microsoft/reverse-proxy/blob/96ed54fd0286638838edb1543333a00dbb3c595b/src/ReverseProxy/Forwarder/HttpForwarder.cs#L260
Seeing this exception means the prefix was shorter than 8 characters, meaning it couldn't possibly be a start of an Absolute Url.