• 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

200 Status com API Explorer

Problema

Você recebeu um código de status HTTP 200 , mas o corpo da mensagem está vazio.

Solução

Para corrigir isso, adicione um cabeçalho Accept contendo application/json ou application/xml à sua solicitação GET . Por exemplo:

curl -X GET 'https://api.newrelic.com/v2/applications/YOUR_APP_ID/metrics/data.json'
-H 'X-Api-Key:YOUR_API_KEY' -i
-H 'Accept: application/json'

Causa

Isso pode ocorrer ao usar um cabeçalho GET padrão que não especifica o tipo de conteúdo aceito. Para obter mais informações sobre cabeçalhos HTTP, consulte este tutorial sobre Negociação de conteúdo usando cabeçalhos HTTP.

Copyright © 2024 New Relic Inc.

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