• EnglishEspañol日本語한국어Português
  • Inicia sesiónComenzar ahora

Te ofrecemos esta traducción automática para facilitar la lectura.

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.

Crea una propuesta

Estado 200 con API Explorer

Problema

Recibiste un código de estado HTTP 200 , pero el cuerpo del mensaje está vacío.

Solución

Para corregir esto, agregue un encabezado Accept que contenga application/json o application/xml a su solicitud GET . Por ejemplo:

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

Esto puede ocurrir cuando se utiliza un encabezado GET predeterminado que no especifica el tipo de contenido aceptado. Para obtener más información sobre los encabezados HTTP, consulte este tutorial sobre Negociación de contenido mediante encabezados HTTP.

Copyright © 2024 New Relic Inc.

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