Skip to content

Conversation

@shairyar
Copy link
Member

@shairyar shairyar commented Sep 3, 2025

Problem

When users encounter a 401 Unauthorized error while sending metrics to AppSignal, the current error handling doesn't provide helpful guidance about what went wrong or how to fix it.

Solution

This PR enhances the error logging in the send_batch function to provide a specific, actionable message when encountering a 401 error. It guides users to ensure they're using an app-level API key rather than an organization-level key.

@backlog-helper
Copy link

backlog-helper bot commented Sep 3, 2025

✔️ All good!

New issue guide | Backlog management | Rules | Feedback

@shairyar shairyar marked this pull request as draft September 3, 2025 11:52
@shairyar shairyar force-pushed the fix-401-error-message branch 2 times, most recently from ea22fd5 to 5ec053e Compare September 3, 2025 12:04
@shairyar shairyar changed the title Add helpful message for 401 errors about app-level keys Show helpful error message for incorrect API key usage. Sep 3, 2025
@shairyar shairyar marked this pull request as ready for review September 3, 2025 12:07
@shairyar shairyar requested a review from unflxw September 3, 2025 12:42
@shairyar shairyar added the enhancement An improvement to an existing feature. label Sep 3, 2025
@shairyar shairyar force-pushed the fix-401-error-message branch from 5ec053e to f1de5ee Compare September 3, 2025 14:16
@backlog-helper
Copy link

backlog-helper bot commented Sep 8, 2025


This is a message from the daily scheduled checks.

New issue guide | Backlog management | Rules | Feedback

@shairyar
Copy link
Member Author

shairyar commented Sep 8, 2025

Closing this, moved the fixed to #68

@shairyar shairyar closed this Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An improvement to an existing feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant