-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not handled error response codes by BatchDataSender #287
Comments
@Sidburse thanks for letting us know about this issue - what's the impact of this issue on what you're trying to accomplish? Not sure whether there's an endpoint specifically for credential testing but will check... |
@kford-newrelic I'm writing a piece of code to validate New Relic credentials (API key). For this I'm sending a test metric via the MetricBatchSender sendBatch() function which returns Response code returned by the Ingest API by making a call to the BatchDataSender sendPayload() function. |
Response codes 400, 403, 404, 405 and 411 are not handled separately by the BatchDataSender. Instead a common DiscardBatchException is thrown to handle these response codes.
newrelic-telemetry-sdk-java/telemetry-core/src/main/java/com/newrelic/telemetry/transport/BatchDataSender.java
Line 167 in 60fb68d
Also, is there a New Relic validation endpoint that can be accessed to test validity of credentials while accessing New Relic?
(Migrate to Jira)
The text was updated successfully, but these errors were encountered: