• /
  • EnglishEspañolFrançais日本語한국어Português
  • Se connecterDémarrer

Cette traduction automatique est fournie pour votre commodité.

En cas d'incohérence entre la version anglaise et la version traduite, la version anglaise prévaudra. Veuillez visiter cette page pour plus d'informations.

Créer un problème

Réponse 301 pour l'appel d'APIREST

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' -i
HTTP/1.1 301 Moved Permanently
Status: 301 Moved Permanently
Location: 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.

Droits d'auteur © 2025 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.