Loading

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

Publiceringsdatum: Mar 2, 2024
Lösning

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-artikelnummer

001117556

 
Laddar
Salesforce Help | Article