'Spring Cloud Gateway - Problem when using cUrL

I have an Spring Cloud Gateway Application running. its work fine but when using cURL inside my server i got some problems. if i trie to make this curl -X GET "https://api-gateway-prod8s.portoitapoa.com/agendamentos/api/agendamento-especial/evento-n4" -H i get the following problem

BUG SCREENSHOT

but if i try to make the a cURL to the microservice directly like this

curl -X "https://agendamentos-prod-k8s.portoitapoa.com/api/agendamento-especial/evento-n4"

i tried almost everything and i don't know why this is happening. Another detail is that it just occurs with cURL and inside the server. if the cURL is requested from my local machine its work fine



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source