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

CloudWatch Logs: Fix crash when no region is selected #37639

Merged
merged 1 commit into from
Aug 6, 2021

Conversation

aocenas
Copy link
Member

@aocenas aocenas commented Aug 6, 2021

Reported by @jongyllen this only happens on prod (can be seen on play.grafana.com). Here we conditionally add error property in response

if setting.Env != setting.Prod {

due to that the error handling on frontend expected string but on prod it got object which then crashed during rendering.

@aocenas aocenas requested a review from a team as a code owner August 6, 2021 12:21
@aocenas aocenas requested review from a team, joshhunt, vickyyyyyyy and davkal and removed request for a team August 6, 2021 12:21
@aocenas aocenas added datasource/CloudWatch Logs Issues related to Cloudwatch Logs in the Cloudwatch data source. type/bug add to changelog and removed datasource/CloudWatch area/frontend labels Aug 6, 2021
@aocenas aocenas requested review from a team, zoltanbedi and ifrost and removed request for joshhunt, vickyyyyyyy, davkal, a team and zoltanbedi August 6, 2021 12:22
@aocenas aocenas added this to the 8.1.1 milestone Aug 6, 2021
@aocenas aocenas added old backport v8.0.x Mark PR for automatic backport to v8.0.x old backport v8.1.x Mark PR for automatic backport to v8.1.x labels Aug 6, 2021
@xlson xlson requested a review from Clarity-89 August 6, 2021 12:36
@aocenas aocenas merged commit e9c032f into main Aug 6, 2021
@aocenas aocenas deleted the aocenas/fix-cw-logs-crash branch August 6, 2021 13:47
grafanabot pushed a commit that referenced this pull request Aug 6, 2021
grafanabot pushed a commit that referenced this pull request Aug 6, 2021
aocenas added a commit that referenced this pull request Aug 6, 2021
)

(cherry picked from commit e9c032f)

Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
aocenas added a commit that referenced this pull request Aug 6, 2021
)

(cherry picked from commit e9c032f)

Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add to changelog datasource/CloudWatch Logs Issues related to Cloudwatch Logs in the Cloudwatch data source. old backport v8.0.x Mark PR for automatic backport to v8.0.x old backport v8.1.x Mark PR for automatic backport to v8.1.x type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants