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://rpm.newrelic.com/v2/applications/1234567890.json' \> -H 'X-Api-Key:YOUR_API_KEY' -iHTTP/1.1 301 Moved PermanentlyStatus: 301 Moved PermanentlyLocation: http://rpm.newrelic.com/v2/applications/1234567890.json...You are being redirected https://rpm.newrelic.com/v2/applications/1234567890.json
OU
bash
$curl -X GET 'http://rpm.newrelic.com/v2/applications/1234567890.json' \> -H 'X-Api-Key:YOUR_API_KEY'You are being redirected https://rpm.newrelic.com/v2/applications/1234567890.json
Solution
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.