Skip to content

Validate a JSON response before checking response code#308

Merged
chattarajoy merged 1 commit intoqubole:unreleasedfrom
chattarajoy:handle_errors
Feb 27, 2020
Merged

Validate a JSON response before checking response code#308
chattarajoy merged 1 commit intoqubole:unreleasedfrom
chattarajoy:handle_errors

Conversation

@chattarajoy
Copy link
Copy Markdown
Member

We have seen issues where Qubole API returns 404 HTML response from Nginx and the call fails with resource not found error with retries not kicking in.

Added change to check if it is a proper JSON Response first if it isn't it means that the response came directly from NGINX and didn't reach the web application. Raising Server Error in such cases so that retries can kick in and avoid intermittent issues.

@chattarajoy chattarajoy requested review from a team and sunasra February 27, 2020 07:22
@chattarajoy chattarajoy merged commit 168a2bc into qubole:unreleased Feb 27, 2020
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