I use on a project the http_client service of symfony (v4.4) to call an external API.
Everything works fine on staging and production.
But in local development, I have a frequent error indicating :
"Couldn't resolve host name for "https://*/v1/pdf"."
However, it works most of the time.
Do you have any ideas that I could explore to remove this error which is a bit annoying when testing locally ?
Here is the error trace :
"trace": [{"file": ".../vendor\/symfony\/http-client\/Response\/ResponseTrait.php","line": 245,"function": "isFirst","class": "Symfony\\Component\\HttpClient\\Chunk\\ErrorChunk","type": "-\u003E" }, {"file": ".../vendor\/symfony\/http-client\/Response\/ResponseTrait.php","line": 99,"function": "initialize","class": "Symfony\\Component\\HttpClient\\Response\\CurlResponse","type": "::" }, {"file": ".../vendor\/symfony\/http-client\/Response\/CurlResponse.php","line": 221,"function": "doGetContent","class": "Symfony\\Component\\HttpClient\\Response\\CurlResponse","type": "-\u003E" }, {"file": ".../GenerateDocumentFromPepperDoc.php","line": 110,"function": "getContent","class": "Symfony\\Component\\HttpClient\\Response\\CurlResponse","type": "-\u003E" },
I already tried to play around url and configuration framework.yml, nothing worked.