Bonjour
Comme l'a déjà rapporté il y a quelques années déjà un autre utilisateur:
https://community.ovhcloud.com/t/51321
l'API renvoie un sale header pour tenter de recruter… et celui-ci n'est pas conforme.
Ce qui fait que depuis la dernière version de guzzlehttp (7.4.2), ce header plante les requêtes API, et ce utilisant la libraire officielle https://github.com/ovh/php-ovh :
[20-Mar-2022 17:43:46] WARNING: [pool www] child 53304 said into stderr: "NOTICE: PHP message: PHP Fatal error: Uncaught InvalidArgumentException: "You know how to code? This is a good start, but it may not be enough! We are looking for engineers who LOVE coding. Programming enthusiasts, code aesthetes, CTF winners, … In short, geeks eager to learn, obstinate, involved. You want to challenge yourself? Join us! http://ovh.jobs" is not valid header value in —/vendor/guzzlehttp/psr7/src/MessageTrait.php:263"
[20-Mar-2022 17:43:46] WARNING: [pool www] child 53304 said into stderr: "Stack trace:"
[20-Mar-2022 17:43:46] WARNING: [pool www] child 53304 said into stderr: "#0 —/vendor/guzzlehttp/psr7/src/MessageTrait.php(209): GuzzleHttp\Psr7\Response->assertValue()"
[20-Mar-2022 17:43:46] WARNING: [pool www] child 53304 said into stderr: "#1 [internal function]: GuzzleHttp\Psr7\Response->GuzzleHttp\Psr7{closure}()"
[20-Mar-2022 17:43:46] WARNING: [pool www] child 53304 said into stderr: "#2 —/vendor/guzzlehttp/psr7/src/MessageTrait.php(212): array_map()"
[20-Mar-2022 17:43:46] WARNING: [pool www] child 53304 said into stderr: "#3 —/vendor/guzzlehttp/psr7/src/MessageTrait.php(181): GuzzleHttp\Psr7\Response->trimAndValidateHeaderValues()"
[20-Mar-2022 17:43:46] WARNING: [pool www] child 53304 said into stderr: "#4 —/vendor/guzzlehttp/psr7/src/MessageTrait.php(154): GuzzleHttp\Psr7\Response->n…"
Retirez donc cet header ou rendez-le conforme…
Hotfix:
`composer require "guzzlehttp/psr7:2.1.0"`
Bonjour @SimpleRezo,
Je vous invite à transmettre vos éléments à la ML dédiée aux API.
https://www.ovh.com/fr/support/mailing.xml (Une fois abonné, vous pourrez transmettre ces informations).
Le service en charge de celle-ci pourra vous faire un retour directement sur cette ML si cela s'avère nécessaire.
Bonne journée et bonne navigation sur Community.
^FabL
J'ai pas envie de m'abonner à une ML pour rapporter un bug que je vous signale ici et que j'ai également signaler sur votre github : https://github.com/ovh/php-ovh/issues
Mais ça n'a pas l'air d'être vraiment pris en compte…
Ce sujet a été automatiquement fermé après 180 jours. Aucune réponse n'est permise dorénavant.