Skip to content

Show helpful error message for incorrect API key usage.#65

Closed
shairyar wants to merge 1 commit into
appsignal:mainfrom
shairyar:fix-401-error-message
Closed

Show helpful error message for incorrect API key usage.#65
shairyar wants to merge 1 commit into
appsignal:mainfrom
shairyar:fix-401-error-message

Conversation

@shairyar

@shairyar shairyar commented Sep 3, 2025

Copy link
Copy Markdown
Member

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

backlog-helper Bot commented Sep 3, 2025

Copy link
Copy Markdown

✔️ 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

backlog-helper Bot commented Sep 8, 2025

Copy link
Copy Markdown

This is a message from the daily scheduled checks.

New issue guide | Backlog management | Rules | Feedback

@shairyar

shairyar commented Sep 8, 2025

Copy link
Copy Markdown
Member Author

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