Yarp -> .Net 9 APIs -> Docker on Localhost -> Proxying to http://testapi:5006/weatherforceast HTTP/2 RequestVersionOrLower info: Yarp.ReverseProxy.Forwarder.HttpForwarder[56] Received HTTP/1.1 response 307. #60001
Unanswered
pastrasigns
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I'm running Docker Desktop, sending a http request via .NET9 Yarp to the weatherforcast API endpoint; I'm receiving this response and no json weather payload: (If i call the weather endpoint without YARP it returns the weather json. Not sure what's up with this?
info: Yarp.ReverseProxy.Forwarder.HttpForwarder[9] Proxying to http://testapi:5006/weatherforceast HTTP/2 RequestVersionOrLower info: Yarp.ReverseProxy.Forwarder.HttpForwarder[56] Received HTTP/1.1 response 307.
"ReverseProxy": {
"Routes": {
"address-route": {
"ClusterId": "address-cluster",
"AuthorizationPolicy": "customers",
"Match": {
"Path": "/secure/{**catch-all}"
},
"Transforms": [
{ "PathPattern": "{**catch-all}" }
]
},
"weather-route": {
"ClusterId": "weather-cluster",
"AuthorizationPolicy": "customers",
"Match": {
"Path": "/secure/weather/{**catch-all}"
},
"Transforms": [
{ "PathPattern": "{**catch-all}" }
]
}
},
"Clusters": {
"address-cluster": {
"Destinations": {
"destination1": {
"Address": "http://address.api:5005/"
}
}
},
"weather-cluster": {
"Destinations": {
"destination1": {
"Address": "http://testapi:5006/"
}
}
}
}
}
Postman:
Beta Was this translation helpful? Give feedback.
All reactions