Problème
Votre appel API REST renvoie un message d'erreur 301 qui peut inclure tout ou partie de ces informations :
bash
$curl -X GET 'http://api.newrelic.com/v2/applications/1234567890.json' \> -H 'X-Api-Key:YOUR_API_KEY' -iHTTP/1.1 301 Moved PermanentlyStatus: 301 Moved PermanentlyLocation: http://api.newrelic.com/v2/applications/1234567890.json...You are being redirected https://api.newrelic.com/v2/applications/1234567890.jsonOU
bash
$curl -X GET 'http://api.newrelic.com/v2/applications/1234567890.json' \> -H 'X-Api-Key:YOUR_API_KEY'You are being redirected https://api.newrelic.com/v2/applications/1234567890.jsonSolution
New Relic nécessite HTTPS pour tout le trafic vers et l'API REST. Cela inclut le trafic entrant et sortant. Si votre appel d'API REST utilise HTTP, modifiez votre script ou programme en HTTPS.