Loading

Flex Gateway inbound http call returns "upstream connect error or disconnect/reset before headers. reset reason: remote reset"

게시 일자: Mar 2, 2024
솔루션

SYMPTOM

Flex Gateway inbound HTTP call returns "upstream connect error or disconnect/reset before headers. reset reason: remote reset" when upstreaming to HTTPS
 
#testing from flex gateway server

$ curl http://127.0.0.1:8081/hello/
upstream connect error or disconnect/reset before headers. reset reason: remote reset

CAUSES

There is an issue if the inbound traffic is HTTP calling to HTTPS upstream call.

SOLUTION

Use a policy to inject the following header

API Manager --> <API Name> --> Policies --> Add policy --> Transformation --> Header Injection --> Inbound Header Map --> Add --> Key : ":scheme" & Value: "https" --> Apply

NOTE: make sure this is for inbound

User-added image
Knowledge 기사 번호

001117556

 
로드 중
Salesforce Help | Article