You received an
HTTP 200 status code, but the message body is empty.
To correct this, add an
Accept header containing
application/xml to your
GET request. For example:
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'
This may occur when using a default
GET header that does not specify the accepted content type. For more information on HTTP headers, see this tutorial on Content negotiation using HTTP headers.
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's data security and licenses documentation.