Why is gateway showing ERR_UNEXPECTED_PROXY_AUTH error on brower? #1801
Replies: 5 comments 5 replies
-
Welcome to Ocelot world! 🐯 Why is your GitHub profile empty? Are you a student? Please, fork Ocelot repository!... to be able to debug solution and contribute, if you have an intention to contribute, for sure |
Beta Was this translation helpful? Give feedback.
-
@ks1990cn Hi Tanmay! Seems auth issue is related to |
Beta Was this translation helpful? Give feedback.
-
@ChetanGhodke007 Please watch this tutorial, I think you want to do same. Just trying to pass JWT to reach downstream, may miss anything in configuration. |
Beta Was this translation helpful? Give feedback.
-
@raman-m and @ks1990cn. Thank you for the reply. |
Beta Was this translation helpful? Give feedback.
-
I have figure out issue. Used hostname instead of IP or localhost. Thanks! |
Beta Was this translation helpful? Give feedback.
-
407 (Proxy Authentication Required) status code
Expected Behavior / New Feature
Gateway should return response from downstream api path
Actual Behavior / Motivation for New Feature
We have hosted 2 application on IIS (windows server), first downstream app opens on 1008 and ocelot gateway app opens on 1009 port. when called gateway upstream api url then gives error.
Steps to Reproduce the Problem
http://localhost:1009/gateway/values
While checking windows application logs below error logged:
Category: Ocelot.Requester.Middleware.HttpRequesterMiddleware
EventId: 0
SpanId: bc5b99469ceadbf8
TraceId: dfe677d0d8dfb6548b6865513454e2db
ParentId: 0000000000000000
RequestId: 80000040-0004-f600-b63f-84710c7967bb
RequestPath: /gateway/values
requestId: 80000040-0004-f600-b63f-84710c7967bb, previousRequestId: no previous request id, message: 407 (Proxy Authentication Required) status code, request uri: http://localhost:1008/api/values
Specifications
Beta Was this translation helpful? Give feedback.
All reactions