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

🥅 Catch and return an error when the API returns a response that could not be parsed #71

Merged
merged 3 commits into from
Sep 22, 2024

Conversation

flovouin
Copy link
Owner

@flovouin flovouin commented Sep 22, 2024

📝 Description of the PR

This fixes a bug where the provider would panic instead of returning an error when the Metabase API returns an unexpected response body that cannot be parsed (although it returns the expected status code).

🐙 Related GitHub issue(s)

Fixes #69 (although the actual error is the provider being misconfigured).

🕰️ Commits

  • ✨ Add HasExpectedStatusWithoutExpectedBody to the MetabaseResponse interface
  • 🥅 Catch and return an error when the API returns a response that could not be parsed
  • 📝 Update changelog

@flovouin flovouin added the bug label Sep 22, 2024
@flovouin flovouin merged commit 5c2ce10 into main Sep 22, 2024
1 check passed
@flovouin flovouin deleted the fix/log-error-api-invalid-response branch September 22, 2024 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

metabase_permissions_group panics on create
1 participant