Skip to content
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

Better error for feature flags fetch without errors. Adds missing format string verbs to poller Errorf. #48

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

mkraft
Copy link
Contributor

@mkraft mkraft commented Aug 8, 2024

We get error responses from the API with no details about why (e.g. rate limiting) and we'd like to see that HTTP response payload appear in the error log rather than what's currently displayed:

ERROR: Unable to fetch feature flags%!(EXTRA <nil>)

Also, there were several invocations of poller.Errorf that were missing the Go format string verb (%s).

@mkraft mkraft changed the title Better error for feature flags fetch without errors. Adds missing for… Better error for feature flags fetch without errors. Adds missing format string verbs to poller Errorf. Aug 8, 2024
Copy link
Contributor

@dmarticus dmarticus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for your contribution!

@dmarticus dmarticus merged commit b8b50b6 into PostHog:master Aug 8, 2024
1 check passed
@mkraft mkraft deleted the better-error branch August 8, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants