• EnglishEspañol日本語한국어Português
  • EntrarComeçar agora

Esta tradução de máquina é fornecida para sua comodidade.

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

Criar um problema

Resposta 301 para chamada REST de API

Problema

Sua chamada de API REST retorna uma mensagem de erro 301 que pode incluir algumas ou todas estas informações:

curl -X GET 'http://rpm.newrelic.com/v2/applications/1234567890.json' \
-H 'X-Api-Key:REDACTED' -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

curl -X GET 'http://rpm.newrelic.com/v2/applications/1234567890.json' \
-H 'X-Api-Key:REDACTED'
You are being redirected https://rpm.newrelic.com/v2/applications/1234567890.json

Solução

A New Relic requer HTTPS para todo o tráfego para e a API REST. Isso inclui tráfego de entrada e saída. Se sua chamada de API REST usar HTTP, altere seu script ou programa para HTTPS.

Copyright © 2024 New Relic Inc.

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