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

[4.3] - KZOO-72: Crash handling 502 error in Google ASR Provider #6626

Merged
merged 1 commit into from
Aug 28, 2020

Conversation

mk1s
Copy link
Contributor

@mk1s mk1s commented Aug 28, 2020

Currently the anonymous match pattern for handle_response/1 assumes a JSON content-type and attempts to decode the response body. This will cause a crash on 502 responses, for example, as they return an HTML response body.

This PR removes the JSON decode call in favor of passing up the raw response body for error propagation.

@mk1s mk1s marked this pull request as ready for review August 28, 2020 18:46
@icehess icehess merged commit edc95d4 into 4.3 Aug 28, 2020
@icehess icehess deleted the KZOO-72-4.3 branch August 28, 2020 19:24
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